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

This commit is contained in:
BDisp
2020-06-09 00:16:05 +01:00
parent 8f49bbe830
commit ebda977cd5

View File

@@ -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 ());