示例#1
0
        public void IsDayMatching_ShouldReturnFalse_WhenDayIsTomorrow()
        {
            var businessday  = new CheckDay(DateTime.Now.AddDays(1).DayOfWeek.ToString());
            var actualResult = businessday.IsDayMatching();

            Assert.IsFalse(actualResult);
        }
示例#2
0
        public void IsDayMatchingTest_ShouldReturnFalse_WhenDayIsEmpty()
        {
            var businessday  = new CheckDay("");
            var actualResult = businessday.IsDayMatching();

            Assert.IsFalse(actualResult);
        }
示例#3
0
        public void IsDayMatching_ShouldReturnTrue_WhenDayIsToday()
        {
            var businessday  = new CheckDay(DateTime.Now.DayOfWeek.ToString());
            var actualResult = businessday.IsDayMatching();

            Assert.IsTrue(actualResult);
        }