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))); }
[InlineData("2016-11-12")] // Saturday public void IsNotBusinessDay(string date) { var rule = new WeekendRule(); Assert.False(rule.CheckIsBusinessDay(DateTime.Parse(date))); }
public void TestCheckIsBusinessDay2(bool expected, DateTime date) { var rule = new WeekendRule(); Assert.Equal(expected, rule.CheckIsBusinessDay(date)); }
public void IsBusinessDayExpected(bool expected, string date) { var rule = new WeekendRule(); Assert.Equal(expected, rule.CheckIsBusinessDay(DateTime.Parse(date))); }