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))); }
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))); }
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))); }