-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a99767
commit dbd2175
Showing
34 changed files
with
1,377 additions
and
2 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
BinaryObjectScanner.Test/FileType/AACSMediaKeyBlockTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.IO; | ||
using BinaryObjectScanner.FileType; | ||
using Xunit; | ||
|
||
namespace BinaryObjectScanner.Test.FileType | ||
{ | ||
public class AACSMediaKeyBlockTests | ||
{ | ||
[Fact] | ||
public void DetectFileTest() | ||
{ | ||
string file = string.Empty; | ||
var detectable = new AACSMediaKeyBlock(); | ||
|
||
string? actual = detectable.Detect(file, includeDebug: false); | ||
Assert.Null(actual); | ||
} | ||
|
||
[Fact] | ||
public void DetectStream() | ||
{ | ||
Stream? stream = new MemoryStream(); | ||
string file = string.Empty; | ||
var detectable = new AACSMediaKeyBlock(); | ||
|
||
string? actual = detectable.Detect(stream, file, includeDebug: false); | ||
Assert.Null(actual); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.IO; | ||
using BinaryObjectScanner.FileType; | ||
using Xunit; | ||
|
||
namespace BinaryObjectScanner.Test.FileType | ||
{ | ||
public class BDPlusSVMTests | ||
{ | ||
[Fact] | ||
public void DetectFileTest() | ||
{ | ||
string file = string.Empty; | ||
var detectable = new BDPlusSVM(); | ||
|
||
string? actual = detectable.Detect(file, includeDebug: false); | ||
Assert.Null(actual); | ||
} | ||
|
||
[Fact] | ||
public void DetectStream() | ||
{ | ||
Stream? stream = new MemoryStream(); | ||
string file = string.Empty; | ||
var detectable = new BDPlusSVM(); | ||
|
||
string? actual = detectable.Detect(stream, file, includeDebug: false); | ||
Assert.Null(actual); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.IO; | ||
using BinaryObjectScanner.FileType; | ||
using Xunit; | ||
|
||
namespace BinaryObjectScanner.Test.FileType | ||
{ | ||
public class BFPKTests | ||
{ | ||
[Fact] | ||
public void ExtractFileTest() | ||
{ | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new BFPK(); | ||
|
||
bool actual = extractable.Extract(file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
|
||
[Fact] | ||
public void ExtractStream_Null_False() | ||
{ | ||
Stream? stream = null; | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new BFPK(); | ||
|
||
bool actual = extractable.Extract(stream, file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
|
||
[Fact] | ||
public void ExtractStream_Empty_False() | ||
{ | ||
Stream? stream = new MemoryStream(); | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new BFPK(); | ||
|
||
bool actual = extractable.Extract(stream, file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.IO; | ||
using BinaryObjectScanner.FileType; | ||
using Xunit; | ||
|
||
namespace BinaryObjectScanner.Test.FileType | ||
{ | ||
public class BSPTests | ||
{ | ||
[Fact] | ||
public void ExtractFileTest() | ||
{ | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new BSP(); | ||
|
||
bool actual = extractable.Extract(file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
|
||
[Fact] | ||
public void ExtractStream_Null_False() | ||
{ | ||
Stream? stream = null; | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new BSP(); | ||
|
||
bool actual = extractable.Extract(stream, file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
|
||
[Fact] | ||
public void ExtractStream_Empty_False() | ||
{ | ||
Stream? stream = new MemoryStream(); | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new BSP(); | ||
|
||
bool actual = extractable.Extract(stream, file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.IO; | ||
using BinaryObjectScanner.FileType; | ||
using Xunit; | ||
|
||
namespace BinaryObjectScanner.Test.FileType | ||
{ | ||
public class BZip2Tests | ||
{ | ||
[Fact] | ||
public void ExtractFileTest() | ||
{ | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new BZip2(); | ||
|
||
bool actual = extractable.Extract(file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
|
||
[Fact] | ||
public void ExtractStream_Null_False() | ||
{ | ||
Stream? stream = null; | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new BZip2(); | ||
|
||
bool actual = extractable.Extract(stream, file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
|
||
[Fact] | ||
public void ExtractStream_Empty_False() | ||
{ | ||
Stream? stream = new MemoryStream(); | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new BZip2(); | ||
|
||
bool actual = extractable.Extract(stream, file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.IO; | ||
using BinaryObjectScanner.FileType; | ||
using Xunit; | ||
|
||
namespace BinaryObjectScanner.Test.FileType | ||
{ | ||
public class CFBTests | ||
{ | ||
[Fact] | ||
public void ExtractFileTest() | ||
{ | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new CFB(); | ||
|
||
bool actual = extractable.Extract(file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
|
||
[Fact] | ||
public void ExtractStream_Null_False() | ||
{ | ||
Stream? stream = null; | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new CFB(); | ||
|
||
bool actual = extractable.Extract(stream, file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
|
||
[Fact] | ||
public void ExtractStream_Empty_False() | ||
{ | ||
Stream? stream = new MemoryStream(); | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new CFB(); | ||
|
||
bool actual = extractable.Extract(stream, file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.IO; | ||
using BinaryObjectScanner.FileType; | ||
using Xunit; | ||
|
||
namespace BinaryObjectScanner.Test.FileType | ||
{ | ||
public class ExecutableTests | ||
{ | ||
[Fact] | ||
public void DetectFileTest() | ||
{ | ||
string file = string.Empty; | ||
var detectable = new Executable(); | ||
|
||
string? actual = detectable.Detect(file, includeDebug: false); | ||
Assert.Null(actual); | ||
} | ||
|
||
[Fact] | ||
public void DetectStream() | ||
{ | ||
Stream? stream = new MemoryStream(); | ||
string file = string.Empty; | ||
var detectable = new Executable(); | ||
|
||
string? actual = detectable.Detect(stream, file, includeDebug: false); | ||
Assert.Null(actual); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.IO; | ||
using BinaryObjectScanner.FileType; | ||
using Xunit; | ||
|
||
namespace BinaryObjectScanner.Test.FileType | ||
{ | ||
public class GCFTests | ||
{ | ||
[Fact] | ||
public void ExtractFileTest() | ||
{ | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new GCF(); | ||
|
||
bool actual = extractable.Extract(file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
|
||
[Fact] | ||
public void ExtractStream_Null_False() | ||
{ | ||
Stream? stream = null; | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new GCF(); | ||
|
||
bool actual = extractable.Extract(stream, file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
|
||
[Fact] | ||
public void ExtractStream_Empty_False() | ||
{ | ||
Stream? stream = new MemoryStream(); | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new GCF(); | ||
|
||
bool actual = extractable.Extract(stream, file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.IO; | ||
using BinaryObjectScanner.FileType; | ||
using Xunit; | ||
|
||
namespace BinaryObjectScanner.Test.FileType | ||
{ | ||
public class GZIPTests | ||
{ | ||
[Fact] | ||
public void ExtractFileTest() | ||
{ | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new GZIP(); | ||
|
||
bool actual = extractable.Extract(file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
|
||
[Fact] | ||
public void ExtractStream_Null_False() | ||
{ | ||
Stream? stream = null; | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new GZIP(); | ||
|
||
bool actual = extractable.Extract(stream, file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
|
||
[Fact] | ||
public void ExtractStream_Empty_False() | ||
{ | ||
Stream? stream = new MemoryStream(); | ||
string file = string.Empty; | ||
string outDir = string.Empty; | ||
var extractable = new GZIP(); | ||
|
||
bool actual = extractable.Extract(stream, file, outDir, includeDebug: false); | ||
Assert.False(actual); | ||
} | ||
} | ||
} |
Oops, something went wrong.