Skip to content

Commit 6e7ef78

Browse files
committed
Fix tests
1 parent aef4495 commit 6e7ef78

File tree

101 files changed

+107
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+107
-107
lines changed

BinaryObjectScanner.Test/FileType/AACSMediaKeyBlockTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
77
public class AACSMediaKeyBlockTests
88
{
99
private static readonly SabreTools.Serialization.Wrappers.AACSMediaKeyBlock wrapper
10-
= new(new SabreTools.Models.AACS.MediaKeyBlock(), new MemoryStream());
10+
= new(new SabreTools.Models.AACS.MediaKeyBlock(), new MemoryStream(new byte[1024]));
1111

1212
[Fact]
1313
public void DetectFile_EmptyString_Null()

BinaryObjectScanner.Test/FileType/BDPlusSVMTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
77
public class BDPlusSVMTests
88
{
99
private static readonly SabreTools.Serialization.Wrappers.BDPlusSVM wrapper
10-
= new(new SabreTools.Models.BDPlus.SVM(), new MemoryStream());
10+
= new(new SabreTools.Models.BDPlus.SVM(), new MemoryStream(new byte[1024]));
1111

1212
[Fact]
1313
public void DetectFile_EmptyString_Null()

BinaryObjectScanner.Test/FileType/LinearExecutableTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
77
public class LinearExecutableTests
88
{
99
private static readonly SabreTools.Serialization.Wrappers.LinearExecutable wrapper
10-
= new(new SabreTools.Models.LinearExecutable.Executable(), new MemoryStream());
10+
= new(new SabreTools.Models.LinearExecutable.Executable(), new MemoryStream(new byte[1024]));
1111

1212
[Fact]
1313
public void DetectFile_EmptyString_Null()

BinaryObjectScanner.Test/FileType/MSDOSTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
77
public class MSDOSTests
88
{
99
private static readonly SabreTools.Serialization.Wrappers.MSDOS wrapper
10-
= new(new SabreTools.Models.MSDOS.Executable(), new MemoryStream());
10+
= new(new SabreTools.Models.MSDOS.Executable(), new MemoryStream(new byte[1024]));
1111

1212
[Fact]
1313
public void DetectFile_EmptyString_Null()

BinaryObjectScanner.Test/FileType/NewExecutableTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
77
public class NewExecutableTests
88
{
99
private static readonly SabreTools.Serialization.Wrappers.NewExecutable wrapper
10-
= new(new SabreTools.Models.NewExecutable.Executable(), new MemoryStream());
10+
= new(new SabreTools.Models.NewExecutable.Executable(), new MemoryStream(new byte[1024]));
1111

1212
[Fact]
1313
public void DetectFile_EmptyString_Null()

BinaryObjectScanner.Test/FileType/PLJTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
77
public class PLJTests
88
{
99
private static readonly SabreTools.Serialization.Wrappers.PlayJAudioFile wrapper
10-
= new(new SabreTools.Models.PlayJ.AudioFile(), new MemoryStream());
10+
= new(new SabreTools.Models.PlayJ.AudioFile(), new MemoryStream(new byte[1024]));
1111

1212
[Fact]
1313
public void DetectFile_EmptyString_Null()

BinaryObjectScanner.Test/FileType/PortableExecutableTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
77
public class PortableExecutableTests
88
{
99
private static readonly SabreTools.Serialization.Wrappers.PortableExecutable wrapper
10-
= new(new SabreTools.Models.PortableExecutable.Executable(), new MemoryStream());
10+
= new(new SabreTools.Models.PortableExecutable.Executable(), new MemoryStream(new byte[1024]));
1111

1212
[Fact]
1313
public void DetectFile_EmptyString_Null()

BinaryObjectScanner.Test/GameEngine/RenderWareTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public void CheckPortableExecutableTest()
1111
{
1212
string file = "filename";
1313
SabreTools.Models.PortableExecutable.Executable model = new();
14-
Stream source = new MemoryStream();
14+
Stream source = new MemoryStream(new byte[1024]);
1515
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
1616

1717
var checker = new RenderWare();

BinaryObjectScanner.Test/Packer/ASPackTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public void CheckPortableExecutableTest()
1111
{
1212
string file = "filename";
1313
SabreTools.Models.PortableExecutable.Executable model = new();
14-
Stream source = new MemoryStream();
14+
Stream source = new MemoryStream(new byte[1024]);
1515
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
1616

1717
var checker = new ASPack();

BinaryObjectScanner.Test/Packer/AdvancedInstallerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public void CheckPortableExecutableTest()
1111
{
1212
string file = "filename";
1313
SabreTools.Models.PortableExecutable.Executable model = new();
14-
Stream source = new MemoryStream();
14+
Stream source = new MemoryStream(new byte[1024]);
1515
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
1616

1717
var checker = new AdvancedInstaller();

0 commit comments

Comments
 (0)