Files

23 lines
685 B
C#
Raw Permalink Normal View History

2024-12-02 01:50:40 -05:00
using System.IO;
2024-12-02 10:38:36 -05:00
using BinaryObjectScanner.Protection;
2024-12-02 01:50:40 -05:00
using Xunit;
2024-12-02 10:38:36 -05:00
namespace BinaryObjectScanner.Test.Protection
2024-12-02 01:50:40 -05:00
{
2024-12-02 10:38:36 -05:00
public class ArmadilloTests
2024-12-02 01:50:40 -05:00
{
[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 01:50:40 -05:00
2024-12-02 10:38:36 -05:00
var checker = new Armadillo();
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
2024-12-02 01:50:40 -05:00
Assert.Null(actual);
}
}
2025-11-07 08:24:22 -05:00
}