Exemplo n.º 1
0
        public void Should_ElapseOnce_When_DayOfWeek_Is_ExactlyDays()
        {
            WeeklyEvent e = new WeeklyEvent(DayOfWeek.Tuesday);

            Assert.AreEqual(1, e.ElapsedEvents(new DateTime(2019, 6, 4), new DateTime(2019, 6, 4)));
        }
Exemplo n.º 2
0
        public void Should_ElapseTwice_When_DayOfWeek_Is_BetweenTwoWeeks()
        {
            WeeklyEvent e = new WeeklyEvent(DayOfWeek.Tuesday);

            Assert.AreEqual(2, e.ElapsedEvents(new DateTime(2019, 6, 1), new DateTime(2019, 6, 15)));
        }
Exemplo n.º 3
0
        public void Should_ElapseZero_When_DayOfWeek_IsNot_BetweenDays()
        {
            WeeklyEvent e = new WeeklyEvent(DayOfWeek.Tuesday);

            Assert.AreEqual(0, e.ElapsedEvents(new DateTime(2019, 6, 5), new DateTime(2019, 6, 8)));
        }