mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-08 18:06:34 +00:00
Update packages
This commit is contained in:
@@ -6,11 +6,14 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
public class LDSCRYPTTests
|
||||
{
|
||||
private static readonly SabreTools.Serialization.Wrappers.LDSCRYPT wrapper
|
||||
= new(new SabreTools.Models.LDSCRYPT.EncryptedFile(), new MemoryStream(new byte[1024]));
|
||||
|
||||
[Fact]
|
||||
public void DetectFile_EmptyString_Null()
|
||||
{
|
||||
string file = string.Empty;
|
||||
var detectable = new LDSCRYPT();
|
||||
var detectable = new LDSCRYPT(wrapper);
|
||||
|
||||
string? actual = detectable.Detect(file, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
@@ -21,10 +24,10 @@ namespace BinaryObjectScanner.Test.FileType
|
||||
{
|
||||
Stream? stream = new MemoryStream();
|
||||
string file = string.Empty;
|
||||
var detectable = new LDSCRYPT();
|
||||
var detectable = new LDSCRYPT(wrapper);
|
||||
|
||||
string? actual = detectable.Detect(stream, file, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
Assert.Equal("LDSCRYPT", actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user