コード例 #1
0
        public void IsChronologyValidShouldReturnFalseIfEndDateHasValueAndLessThanStartDate()
        {
            ICalendarPeriod SUT = new TestCalendarPeriod {
                StartDate = DateTime.Now, EndDate = DateTime.Now.AddMinutes(-1)
            };

            Assert.IsFalse(SUT.IsChronologyValid());
        }
コード例 #2
0
        public void IsChronologyValidShouldReturnTrueIfEndDateIsNull()
        {
            ICalendarPeriod SUT = new TestCalendarPeriod {
                StartDate = DateTime.Now, EndDate = null
            };

            Assert.IsTrue(SUT.IsChronologyValid());
        }