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

            Assert.True(rule.CheckIsBusinessDay(new DateTime(2016, 6, 27)));
            Assert.False(rule.CheckIsBusinessDay(new DateTime(2016, 6, 26)));
        }
コード例 #2
0
        [InlineData("2016-11-12")] // Saturday
        public void IsNotBusinessDay(string date)
        {
            var rule = new WeekendRule();

            Assert.False(rule.CheckIsBusinessDay(DateTime.Parse(date)));
        }
コード例 #3
0
        public void TestCheckIsBusinessDay2(bool expected, DateTime date)
        {
            var rule = new WeekendRule();

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

            Assert.Equal(expected, rule.CheckIsBusinessDay(DateTime.Parse(date)));
        }