コード例 #1
0
        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());
        }
コード例 #2
0
        public void IsOverDueReturnsFalseIfNotCompleted()
        {
            var SUT = new TestCompletable {
                CompletionDate = null
            };

            Assert.IsFalse(SUT.IsOverDue());
        }