public void IsHabitActiveReturnsTrueWhenTheRepeatTypeIsDaysAndAskedDateIsTheSameAsStartDate()
        {
            // Arrange
            var date = new DateTime(2010, 10, 10);

            ArrangeNowDateToDateProvider(date);
            var daysToRepeat = 10;
            var repeatType   = RepeatType.Days;

            ArrangeHabit(date, repeatType, daysToRepeat);

            // Act
            var result = _scheduleHelper.IsHabitActive(_habit, date);

            // Assert
            Assert.IsTrue(result);
        }
Example #2
0
 public bool IsActive(DateTime?date = null)
 {
     return(_scheduleHelper.IsHabitActive(this, date));
 }