public void GetDaysDifferenceRevesed() { SimpleDate date = new SimpleDate(31, 01, 1993); SimpleDate date2 = new SimpleDate(09, 07, 1998); Assert.AreEqual(date2.DaysDifference(date), -1985); }
public void GetDaysDifferenceZero() { SimpleDate date = new SimpleDate(31, 01, 1993); SimpleDate date2 = new SimpleDate(31, 01, 1993); Assert.AreEqual(date2.DaysDifference(date), 0); }
public void GetDaysDifference() { SimpleDate date = new SimpleDate(31, 01, 1993); SimpleDate date2 = new SimpleDate(09, 07, 1994); Assert.AreEqual(date.DaysDifference(date2), 524); }
public void GetDaysDifferenceWithLeapYear() { SimpleDate date = new SimpleDate(31, 01, 1993); SimpleDate date2 = new SimpleDate(09, 07, 1998); Assert.AreEqual(date.DaysDifference(date2), 1985); }
public void DaysDifferenceTest() { Dog testSimpleDateDog = new Dog(1, new SimpleDate(15, 4, 2001), "bassie", new SimpleDate(16, 4, 2001)); SimpleDate testDate = new SimpleDate(16, 4, 2001); Assert.AreNotEqual(testSimpleDateDog.LastWalkDate.Day, testDate.DaysDifference(testDate)); }