Change-Id: Ia0969271d3bf7bdfd78fe17160e09dcb1c278eda
}
[Test]
+ [SetCulture("en-US")]
public void ConvertToString ()
{
CultureInfo ciUS = new CultureInfo("en-US");
}
[Test]
- //[Ignore ("need to fix tests that run on different timezones")]
public void TestParse2 ()
{
DateTime t1 = DateTime.Parse ("Mon, 25 Feb 2002 04:25:13 GMT");
t1 = TimeZone.CurrentTimeZone.ToUniversalTime(t1);
- Assert.AreEqual (04 - TimeZone.CurrentTimeZone.GetUtcOffset (t1).Hours, t1.Hour);
+ Assert.AreEqual (4, t1.Hour);
}
[Test]
}
[Test]
+ [SetCulture("en-US")]
public void TestConstructDouble ()
{
Decimal d;
}
[Test]
+ [SetCulture("en-US")]
public void ToString_Defaults ()
{
Decimal d = 254.9m;
}
[Test] // bug #59425
+ [SetCulture("en-US")]
public void ParseAndKeepPrecision ()
{
string value = "5";
}
[Test]
+ [SetCulture("en-US")]
public void ToString_G ()
{
Assert.AreEqual ("1.0", (1.0m).ToString (), "00");