public void Compute_next_open_day_over_bank_holliday() { var calendar = new MiniCalendar(); calendar.AddBankHolliday(new DateTime(2015, 4, 9)); Assert.AreEqual(new DateTime(2015, 4, 10), calendar.NextOpenDay(new DateTime(2015, 4, 8))); }
public void Bank_hollidays_are_closed() { var calendar = new MiniCalendar(); calendar.AddBankHolliday(new DateTime(2015, 4, 8)); Assert.IsFalse(calendar.IsOpen(new DateTime(2015, 4, 8))); }