コード例 #1
0
        public void TestMayDay2020()
        {
            var expected = new DateTime(2020, 5, 8);
            var actual   = UKBankHoliday.MayDay(2020);

            Assert.AreEqual(expected, actual.Value);
        }
コード例 #2
0
        public void TestMayDayPost78()
        {
            var expected = new DateTime(1978, 5, 1);
            var actual   = UKBankHoliday.MayDay(1978);

            Assert.AreEqual(expected, actual.Value);
        }
コード例 #3
0
        public void TestMayDay79()
        {
            var expected = new DateTime(1979, 5, 7);
            var actual   = UKBankHoliday.MayDay(1979);

            Assert.AreEqual(expected, actual.Value);
        }
コード例 #4
0
        public void TestMayDay2020IsNotMonday()
        {
            var veDay = UKBankHoliday.MayDay(2020).GetValueOrDefault();

            Assert.IsTrue(new UKBankHoliday().IsBankHoliday(veDay));
        }
コード例 #5
0
        public void TestMayDayPre78()
        {
            var actual = UKBankHoliday.MayDay(1977);

            Assert.IsNull(actual);
        }