From 1565efd097bd20cb8ec3e496673bd6d925bd4998 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 2 Dec 2024 01:28:24 -0500 Subject: [PATCH] Add game engine tests --- .../GameEngine/RenderWareTests.cs | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 BinaryObjectScanner.Test/GameEngine/RenderWareTests.cs diff --git a/BinaryObjectScanner.Test/GameEngine/RenderWareTests.cs b/BinaryObjectScanner.Test/GameEngine/RenderWareTests.cs new file mode 100644 index 00000000..2750e5b0 --- /dev/null +++ b/BinaryObjectScanner.Test/GameEngine/RenderWareTests.cs @@ -0,0 +1,22 @@ +using System.IO; +using BinaryObjectScanner.GameEngine; +using Xunit; + +namespace BinaryObjectScanner.Test.GameEngine +{ + public class RenderWareTests + { + [Fact] + public void CheckPortableExecutableTest() + { + string file = "filename"; + SabreTools.Models.PortableExecutable.Executable model = new(); + Stream source = new MemoryStream(); + SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source); + + var checker = new RenderWare(); + string? actual = checker.CheckExecutable(file, pex, includeDebug: false); + Assert.Null(actual); + } + } +} \ No newline at end of file