public void TestMayDay2020() { var expected = new DateTime(2020, 5, 8); var actual = UKBankHoliday.MayDay(2020); Assert.AreEqual(expected, actual.Value); }
public void TestMayDayPost78() { var expected = new DateTime(1978, 5, 1); var actual = UKBankHoliday.MayDay(1978); Assert.AreEqual(expected, actual.Value); }
public void TestMayDay79() { var expected = new DateTime(1979, 5, 7); var actual = UKBankHoliday.MayDay(1979); Assert.AreEqual(expected, actual.Value); }
public void TestMayDay2020IsNotMonday() { var veDay = UKBankHoliday.MayDay(2020).GetValueOrDefault(); Assert.IsTrue(new UKBankHoliday().IsBankHoliday(veDay)); }
public void TestMayDayPre78() { var actual = UKBankHoliday.MayDay(1977); Assert.IsNull(actual); }