Skip to content

Commit

Permalink
Merge pull request #325 from JoeMighty/RegionalDecimalSeparatorFix
Browse files Browse the repository at this point in the history
Set thread culture within tests
  • Loading branch information
JakeGinnivan committed Nov 19, 2015
2 parents d3aca49 + d4027ad commit fd60530
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using System.Globalization;
using System.Threading;
using NUnit.Framework;

namespace Shouldly.Tests.TestHelpers
Expand All @@ -8,6 +10,12 @@ public abstract class ShouldlyShouldFailureTestScenario
protected abstract void ShouldThrowAWobbly();
protected abstract string ChuckedAWobblyErrorMessage { get; }

[TestFixtureSetUp]
public void Setup()
{
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-GB");
}

[Test]
public void ShouldMethodShouldThrowAWobbly()
{
Expand Down

0 comments on commit fd60530

Please sign in to comment.