Fix tests for file types with default values

This commit is contained in:
Matt Nadareski
2025-09-06 10:51:00 -04:00
parent 038910b744
commit a11c7dc9d5
3 changed files with 6 additions and 9 deletions

View File

@@ -20,15 +20,14 @@ namespace BinaryObjectScanner.Test.FileType
}
[Fact]
public void DetectStream_EmptyStream_Empty()
public void DetectStream_EmptyStream_DefaultValue()
{
Stream? stream = new MemoryStream();
string file = string.Empty;
var detectable = new AACSMediaKeyBlock(wrapper);
string? actual = detectable.Detect(stream, file, includeDebug: false);
Assert.NotNull(actual);
Assert.Empty(actual);
Assert.Equal("AACS (Unknown Version)", actual);
}
}
}

View File

@@ -20,15 +20,14 @@ namespace BinaryObjectScanner.Test.FileType
}
[Fact]
public void DetectStream_EmptyStream_Empty()
public void DetectStream_EmptyStream_DefaultValue()
{
Stream? stream = new MemoryStream();
string file = string.Empty;
var detectable = new BDPlusSVM(wrapper);
string? actual = detectable.Detect(stream, file, includeDebug: false);
Assert.NotNull(actual);
Assert.Empty(actual);
Assert.Equal("BD+ 0000-00-00", actual);
}
}
}

View File

@@ -20,15 +20,14 @@ namespace BinaryObjectScanner.Test.FileType
}
[Fact]
public void DetectStream_EmptyStream_Empty()
public void DetectStream_EmptyStream_DefaultValue()
{
Stream? stream = new MemoryStream();
string file = string.Empty;
var detectable = new PLJ(wrapper);
string? actual = detectable.Detect(stream, file, includeDebug: false);
Assert.NotNull(actual);
Assert.Empty(actual);
Assert.Equal("PlayJ Audio File", actual);
}
}
}