Skip to content

Commit

Permalink
Ensure agnostic comparers are initialized before running tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinematics committed Jan 11, 2017
1 parent 830c2f1 commit f68e6b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions TallyUnitTest/VoteConstructorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class VoteConstructorTests
[ClassInitialize]
public static void ClassInit(TestContext context)
{
StringUtility.InitStringComparers(DefaultUnicodeHashFunction.HashFunction);
sampleQuest = new Quest();
}

Expand Down
4 changes: 3 additions & 1 deletion TallyUnitTest/VoteCounterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ namespace NetTally.Tests
public class VoteCounterTests
{
#region Setup
static VoteCounterImpl voteCounterRaw = VoteCounterImpl.Instance;
static VoteCounterImpl voteCounterRaw;
static IQuest sampleQuest;

[ClassInitialize]
public static void ClassInit(TestContext context)
{
StringUtility.InitStringComparers(DefaultUnicodeHashFunction.HashFunction);
sampleQuest = new Quest();
voteCounterRaw = VoteCounterImpl.Instance;
}

[TestInitialize]
Expand Down

0 comments on commit f68e6b7

Please sign in to comment.