Skip to content

Commit

Permalink
Started calculator tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkinsella committed Nov 8, 2019
1 parent 81699fb commit 6870728
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/Workshell.PE.Tests/LocationCalculatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}

0 comments on commit 6870728

Please sign in to comment.