Skip to content

Commit

Permalink
Set the default culture of string format unit test to invariant
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmada committed May 6, 2016
1 parent da719b1 commit 2805129
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NetFabric.Angle.UnitTests/AngleTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Globalization;
using System.Threading;

namespace NetFabric.UnitTests
{
Expand Down Expand Up @@ -530,6 +531,8 @@ public void LerpIsDefinedCorrectly()
[TestMethod]
public void ToStringIsDefinedCorrectly()
{
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

Assert.AreEqual("3.14159265358979", Angle.Straight.ToString());

Assert.AreEqual("3.14159265358979", Angle.Straight.ToString("R"));
Expand Down

0 comments on commit 2805129

Please sign in to comment.