Exemplo n.º 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)));
        }
Exemplo n.º 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)));
        }