public void AddPreciseMinutesTest(DateTime date, double minutes) { DateTime date1 = date.AddPreciseMinutes(minutes); DateTime date2 = date.AddMinutes(minutes); Assert.AreNotEqual(0, date1.Ticks % 10000); Assert.AreEqual(0, date2.Ticks % 10000); Assert.IsTrue(Math.Abs(date1.Ticks / 10000 - date2.Ticks / 10000) <= 1); }