mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-22 23:05:03 +00:00
Add protection tests
This commit is contained in:
19
BinaryObjectScanner.Test/Protection/PSXAntiModchipTests.cs
Normal file
19
BinaryObjectScanner.Test/Protection/PSXAntiModchipTests.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class PSXAntiModchipTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckContentsTest()
|
||||
{
|
||||
string file = "filename";
|
||||
byte[] fileContent = [0x01, 0x02, 0x03, 0x04];
|
||||
|
||||
var checker = new PSXAntiModchip();
|
||||
string? actual = checker.CheckContents(file, fileContent, includeDebug: true);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user