public void ParseExactUtcWithCultureWorks() { var dt = JsDate.ParseExactUtc("2012-12-08", "yyyy-dd-MM", CultureInfo.InvariantCulture); Assert.AreEqual(dt.GetUtcFullYear(), 2012); Assert.AreEqual(dt.GetUtcMonth(), 7); Assert.AreEqual(dt.GetUtcDate(), 12); }
public void ParseExactUtcWorks() { var dt = JsDate.ParseExactUtc("2012-12-08", "yyyy-dd-MM"); Assert.AreEqual(dt.GetUtcFullYear(), 2012); Assert.AreEqual(dt.GetUtcMonth(), 7); Assert.AreEqual(dt.GetUtcDate(), 12); }