public void TestBoxingDayLandingOnSaturday() { var actual = NewZealandPublicHoliday.BoxingDay(2020); var expected = new DateTime(2020, 12, 28); Assert.AreEqual(expected, actual); }
public void TestChristmasOnSundayWithBoxingOnMonday() { Assert.AreEqual(new DateTime(2016, 12, 26), NewZealandPublicHoliday.Christmas(2016)); Assert.AreEqual(new DateTime(2016, 12, 27), NewZealandPublicHoliday.BoxingDay(2016)); }
public void TestChristmasAndBoxingDayLandingOnTheEntireWeekend() { Assert.AreEqual(new DateTime(2021, 12, 27), NewZealandPublicHoliday.Christmas(2021)); Assert.AreEqual(new DateTime(2021, 12, 28), NewZealandPublicHoliday.BoxingDay(2021)); }