public void GivenNotMemorialDay_WhenAskingIfObserved_ThenItShouldReturnFalse() { // arrange DateTime date = new DateTime(2020, 6, 1); IHoliday subject = new MemorialDay(date, new NonHoliday()); // act bool actual = subject.ObservedHoliday(); // assert actual.Should().BeFalse(); }
public void GivenLastMondayInMay2021_WhenAskingIfObserved_ThenItShouldReturnTrue() { // arrange DateTime date = new DateTime(2021, 5, 31); IHoliday subject = new MemorialDay(date, new NonHoliday()); // act bool actual = subject.ObservedHoliday(); // assert actual.Should().BeTrue(); }