Ejemplo n.º 1
0
        public void IsDayMatching_ShouldReturnFalse_WhenDayIsTomorrow()
        {
            var businessday  = new CheckDay(DateTime.Now.AddDays(1).DayOfWeek.ToString());
            var actualResult = businessday.IsDayMatching();

            Assert.IsFalse(actualResult);
        }
Ejemplo n.º 2
0
        public void IsDayMatchingTest_ShouldReturnFalse_WhenDayIsEmpty()
        {
            var businessday  = new CheckDay("");
            var actualResult = businessday.IsDayMatching();

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

            Assert.IsTrue(actualResult);
        }