public void IsOverDueReturnsFalseIfCompletionDateEqualOrLessThanEndDate() { var dt = DateTime.Now; var SUT = new TestCompletable { StartDate = dt, EndDate = dt.AddMinutes(1), CompletionDate = dt.AddMinutes(1) }; Assert.IsFalse(SUT.IsOverDue()); SUT.CompletionDate = SUT.CompletionDate.Value.AddSeconds(-1); Assert.IsFalse(SUT.IsOverDue()); }
public void IsOverDueReturnsFalseIfNotCompleted() { var SUT = new TestCompletable { CompletionDate = null }; Assert.IsFalse(SUT.IsOverDue()); }