public void SetUtcMillisecondsWorks() { var dt = new JsDate(JsDate.Utc(2000, 0, 1)); dt.SetUtcMilliseconds(435); Assert.AreEqual(dt.GetUtcMilliseconds(), 435); }
public void SetUtcMinutesWorks() { var dt = new JsDate(JsDate.Utc(2000, 0, 1)); dt.SetUtcMinutes(34); Assert.AreEqual(dt.GetUtcMinutes(), 34); }
public void SetUtcSecondsWorks() { var dt = new JsDate(JsDate.Utc(2000, 0, 1)); dt.SetUtcSeconds(23); Assert.AreEqual(dt.GetUtcSeconds(), 23); }
public void SetUtcDateWorks() { var dt = new JsDate(JsDate.Utc(2000, 0, 1)); dt.SetUtcDate(12); Assert.AreEqual(dt.GetUtcDate(), 12); }
public void SetUtcHoursWorks() { var dt = new JsDate(JsDate.Utc(2000, 0, 1)); dt.SetUtcHours(11); Assert.AreEqual(dt.GetUtcHours(), 11); }
public void SetUtcFullYearWithOneParameterWorks() { var dt = new JsDate(JsDate.Utc(2000, 0, 1)); dt.SetUtcFullYear(2021); Assert.AreEqual(dt.GetUtcFullYear(), 2021); }
public void SetUtcMonthWorks() { var dt = new JsDate(JsDate.Utc(2000, 0, 1)); dt.SetUtcMonth(3); Assert.AreEqual(dt.GetUtcMonth(), 3); }
public void SetUtcFullYearWithThreeParametersWorks() { var dt = new JsDate(JsDate.Utc(2000, 0, 1)); dt.SetUtcFullYear(2021, 7, 13); Assert.AreEqual(dt.GetUtcFullYear(), 2021); Assert.AreEqual(dt.GetUtcMonth(), 7); Assert.AreEqual(dt.GetUtcDate(), 13); }
public void GetUtcDayWorks() { var dt = new JsDate(JsDate.Utc(2011, 7, 12, 13, 42, 56, 345)); Assert.AreEqual(dt.GetUtcDay(), 5); }
public void GetUtcMillisecondsWorks() { var dt = new JsDate(JsDate.Utc(2011, 7, 12, 13, 42, 56, 345)); Assert.AreEqual(dt.GetUtcMilliseconds(), 345); }
public void GetUtcMinutesWorks() { var dt = new JsDate(JsDate.Utc(2011, 7, 12, 13, 42, 56, 345)); Assert.AreEqual(dt.GetUtcMinutes(), 42); }
public void GetUtcFullYearWorks() { var dt = new JsDate(JsDate.Utc(2011, 7, 12, 13, 42, 56, 345)); Assert.AreEqual(dt.GetUtcFullYear(), 2011); }
public void ValueOfWorks() { var dt = new JsDate(JsDate.Utc(1970, 0, 2)); Assert.AreEqual(dt.ValueOf(), 1440 * 60 * 1000); }
public void GetTimeWorks() { var dt = new JsDate(JsDate.Utc(1970, 0, 2)); Assert.AreEqual(dt.GetTime(), 1440 * 60 * 1000); }