Files
BinaryObjectScanner/BinaryObjectScanner.Test/Packer/PECompactTests.cs

23 lines
677 B
C#
Raw Normal View History

2024-12-02 01:50:40 -05:00
using System.IO;
using BinaryObjectScanner.Packer;
using Xunit;
namespace BinaryObjectScanner.Test.Packer
{
public class PECompactTests
{
[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
var checker = new PECompact();
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
}