Beispiel #1
0
 public void DateTimeZone_returns_tz_from_date_ignoring_provided_tz_default()
 {
     Assert.AreEqual("-05:00", DekiScriptLibrary.DateTimeZone("Sun, 10 Oct 2010 12:00:00 -05:00", "-3"));
 }
Beispiel #2
0
 public void DateTimeZone_returns_provided_tz_if_no_tz_in_date()
 {
     Assert.AreEqual("-03:00", DekiScriptLibrary.DateTimeZone("12:00pm", "-3"));
 }
Beispiel #3
0
 public void DateTimeZone_returns_tz_from_date()
 {
     Assert.AreEqual("-03:00", DekiScriptLibrary.DateTimeZone("Sun, 10 Oct 2010 12:00:00 -03:00", null));
 }
Beispiel #4
0
 public void DateTimeZone_returns_GMT_if_no_tz_in_date()
 {
     Assert.AreEqual("GMT", DekiScriptLibrary.DateTimeZone("12:00pm", null));
 }