Files
BinaryObjectScanner/BinaryObjectScanner.Test/Protection/CEGTests.cs
HeroponRikiBestest 6cc6f66c95 Add CEG protection detection (#406)
* Initial work

* Finish PR

* Update test count
2026-02-07 18:07:36 -05:00

23 lines
683 B
C#

using System.IO;
using BinaryObjectScanner.Protection;
using Xunit;
namespace BinaryObjectScanner.Test.Protection
{
public class CEGTests
{
[Fact]
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
var checker = new CenegaProtectDVD();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
}
}