Ejemplo n.º 1
0
        public void AddPreciseDaysTest(DateTime date, double day)
        {
            DateTime date1 = date.AddPreciseDays(day);
            DateTime date2 = date.AddDays(day);

            Assert.AreNotEqual(0, date1.Ticks % 10000);
            Assert.AreEqual(0, date2.Ticks % 10000);
            Assert.IsTrue(Math.Abs(date1.Ticks / 10000 - date2.Ticks / 10000) <= 1);
        }