예제 #1
0
        public void ShouldHaveCorrectMilleniumDate()
        {
            var sut = new SepcialDateStore();

            var result = sut.DateOf(SpecialDates.NewMillennium);

            Assert.That(result, Is.EqualTo(new DateTime(2000, 1, 1, 0, 0, 0, 0)));
        }
예제 #2
0
        public void ShouldHaveCorrectMilleniumDate_WithTolerance()
        {
            var sut = new SepcialDateStore();

            var result = sut.DateOf(SpecialDates.NewMillennium);

            Assert.That(result, Is.EqualTo(new DateTime(2000, 1, 1, 0, 0, 0, 1))
                        .Within(TimeSpan.FromMilliseconds(1)));
        }