public void IsChronologyValidShouldReturnFalseIfEndDateHasValueAndLessThanStartDate() { ICalendarPeriod SUT = new TestCalendarPeriod { StartDate = DateTime.Now, EndDate = DateTime.Now.AddMinutes(-1) }; Assert.IsFalse(SUT.IsChronologyValid()); }
public void IsChronologyValidShouldReturnTrueIfEndDateIsNull() { ICalendarPeriod SUT = new TestCalendarPeriod { StartDate = DateTime.Now, EndDate = null }; Assert.IsTrue(SUT.IsChronologyValid()); }