示例#1
0
        public void SetUtcFullYearWithOneParameterWorks()
        {
            var dt = new JsDate(JsDate.Utc(2000, 0, 1));

            dt.SetUtcFullYear(2021);
            Assert.AreEqual(dt.GetUtcFullYear(), 2021);
        }
        public void SetUtcFullYearWithTwoParametersWorks()
        {
            var dt = new JsDate(DateTime.Utc(2000, 0, 1));

            dt.SetUtcFullYear(2021, 7);
            Assert.AreEqual(dt.GetUtcFullYear(), 2021);
            Assert.AreEqual(dt.GetUtcMonth(), 7);
        }