using System.Collections.Generic; using System.IO; using BinaryObjectScanner.Protection; using Xunit; namespace BinaryObjectScanner.Test.Protection { public class SecuROMTests { [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 SecuROM(); string? actual = checker.CheckExecutable(file, exe, includeDebug: false); Assert.Null(actual); } [Fact] public void CheckDirectoryPathTest() { string path = "path"; List files = []; var checker = new SecuROM(); List actual = checker.CheckDirectoryPath(path, files); Assert.Empty(actual); } [Fact] public void CheckFilePathTest() { string path = "path"; var checker = new SecuROM(); string? actual = checker.CheckFilePath(path); Assert.Null(actual); } [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 SecuROM(); string? actual = checker.CheckDiskImage(file, iso, includeDebug: false); Assert.Null(actual); } } }