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))); }
public void TestCheckDateMemberData(bool expected, DateTime date) { var rule = new WeekendRule(); Assert.Equal(expected, rule.CheckDate(date)); }
public void IsBusinessDayExpected(bool expected, string date) { var rule = new WeekendRule(); Assert.Equal(expected, rule.CheckDate(DateTime.Parse(date))); }
public void IsNotBusinessDay(string date) { var rule = new WeekendRule(); Assert.False(rule.CheckDate(DateTime.Parse(date))); }