Ejemplo n.º 1
0
 public void DisplayDateTime()
 {
     Assert.AreEqual("12/14/2001",
                     StringConversion.DisplayDateTime(new DateTime(2001, 12, 14), new CultureInfo("en-US")));
     Assert.AreEqual("01.02.2001 07:13:55",
                     StringConversion.DisplayDateTime(new DateTime(2001, 02, 1, 07, 13, 55, 0), new CultureInfo("de-DE")));
     Assert.AreEqual("1:33:00 AM",
                     StringConversion.DisplayDateTime(new DateTime(1899, 12, 30).AddHours(1.55), new CultureInfo("en-US")));
 }