martinjw/Holiday

the method IsPublicHoliday in DenmarkPublicHoliday does find easter Holidays if they are in march

Closed this issue · 1 comments

the method IsPublicHoliday in DenmarkPublicHoliday does find easter Holidays if they are in march

Next March Easter is 2024. This test works. Do you have a specific date that fails?

            var expected = new DateTime(2024, 3, 31);
            var actual = DenmarkPublicHoliday.Easter(2024);
            Assert.AreEqual(expected, actual);
            Assert.IsTrue(new DenmarkPublicHoliday().IsPublicHoliday(expected));