Пример #1
0
        public void TestGetDateB()
        {
            DateTime date = SystemTimeUtils.GetDate(data_b, 8 + 4);

            // Is 2006-01-24 (2nd day of week) 21:25:03.725
            DateTime exp = DateTime.Parse("2006-01-24 21:25:03.725");

            Assert.AreEqual(exp.TimeOfDay, date.TimeOfDay);
            Assert.AreEqual(exp, date);
        }
Пример #2
0
        public void TestGetDateA()
        {
            DateTime date = SystemTimeUtils.GetDate(data_a);

            // Is 2006-01-24 (2nd day of week) 10:26:15.205
            DateTime exp = DateTime.Parse("2006-01-24 10:26:15.205");

            Assert.AreEqual(exp.TimeOfDay, date.TimeOfDay);
            Assert.AreEqual(exp, date);
        }