public void AddPreciseSecondsTest(DateTime date, double seconds) { DateTime date1 = date.AddPreciseSeconds(seconds); DateTime date2 = date.AddSeconds(seconds); Assert.AreNotEqual(0, date1.Ticks % 10000); Assert.AreEqual(0, date2.Ticks % 10000); Assert.IsTrue(Math.Abs(date1.Ticks / 10000 - date2.Ticks / 10000) <= 1); }