From 687072889324c460c72850c3e36bddb25a743d3d Mon Sep 17 00:00:00 2001 From: Lloyd Kinsella Date: Fri, 8 Nov 2019 15:51:43 +0000 Subject: [PATCH] Started calculator tests. --- .../LocationCalculatorTests.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/Workshell.PE.Tests/LocationCalculatorTests.cs b/tests/Workshell.PE.Tests/LocationCalculatorTests.cs index be45cc0..75242f5 100644 --- a/tests/Workshell.PE.Tests/LocationCalculatorTests.cs +++ b/tests/Workshell.PE.Tests/LocationCalculatorTests.cs @@ -2,9 +2,28 @@ using System.Collections.Generic; using System.Text; +using NUnit.Framework; + namespace Workshell.PE.Tests { + [TestFixture] public sealed class LocationCalculatorTests { + private PortableExecutableImage _image; + private LocationCalculator _calc; + + [OneTimeSetUp] + public void SetUp() + { + _image = PortableExecutableImage.FromStream(TestingUtils.GetFileFromResources("nativetest.x64.dll")); + _calc = _image.GetCalculator(); + } + + [OneTimeTearDown] + public void TearDown() + { + _calc = null; + _image.Dispose(); + } } }