Files

36 lines
1.1 KiB
C#
Raw Permalink Normal View History

2024-12-02 10:38:36 -05:00
using System.IO;
using BinaryObjectScanner.Protection;
using Xunit;
namespace BinaryObjectScanner.Test.Protection
{
public class AlphaROMTests
{
[Fact]
public void CheckPortableExecutableTest()
{
string file = "filename";
2025-09-29 08:01:50 -04:00
SabreTools.Data.Models.PortableExecutable.Executable model = new();
2025-09-20 11:05:56 -04:00
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
2024-12-02 10:38:36 -05:00
var checker = new AlphaROM();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
2024-12-02 10:38:36 -05:00
Assert.Null(actual);
}
2025-11-07 08:24:22 -05:00
[Fact]
public void CheckDiskImageTest()
{
string file = "filename";
SabreTools.Data.Models.ISO9660.Volume model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
var checker = new AlphaROM();
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
Assert.Null(actual);
}
2024-12-02 10:38:36 -05:00
}
2025-11-07 08:24:22 -05:00
}