Browse Source

Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

BDisp 5 years ago
parent
commit
ebda977cd5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      UnitTests/DimPosTests.cs

+ 3 - 1
UnitTests/DimPosTests.cs

@@ -105,11 +105,13 @@ namespace Terminal.Gui {
 		[Fact]
 		public void TestPercent ()
 		{
+			System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo ("en-US");
+
 			var pos = Pos.Percent (0);
 			Assert.Equal ("Pos.Factor(0)", pos.ToString ());
 
 			pos = Pos.Percent (0.5F);
-			Assert.Equal ("Pos.Factor(0,005)", pos.ToString ());
+			Assert.Equal ("Pos.Factor(0.005)", pos.ToString ());
 
 			pos = Pos.Percent (100);
 			Assert.Equal ("Pos.Factor(1)", pos.ToString ());