コード例 #1
0
        public void TestCheckDate()
        {
            var rule = new WeekendRule();

            Assert.True(rule.CheckDate(new DateTime(2016, 6, 27)));
            Assert.False(rule.CheckDate(new DateTime(2016, 6, 26)));
        }
コード例 #2
0
        public void TestCheckDateMemberData(bool expected, DateTime date)
        {
            var rule = new WeekendRule();

            Assert.Equal(expected, rule.CheckDate(date));
        }
コード例 #3
0
        public void IsBusinessDayExpected(bool expected, string date)
        {
            var rule = new WeekendRule();

            Assert.Equal(expected, rule.CheckDate(DateTime.Parse(date)));
        }
コード例 #4
0
        public void IsNotBusinessDay(string date)
        {
            var rule = new WeekendRule();

            Assert.False(rule.CheckDate(DateTime.Parse(date)));
        }