public void ShouldReturnAllDatesWhen90DatesSelected() { var dates = DateCalculator.GenerateDates(); dates.Count.ShouldBe(90); dates.First().ShouldBe(DateTime.Today); }
public void ShouldReturnSelectedDaysWhenSpecifiedDaysOfWeekSelected(string day) { string[] days = { day }; var dates = DateCalculator.GenerateDates(days); dates.All(date => date.DayOfWeek.ToString() == day).ShouldBeTrue(); }
public void ShouldReturnSelectedDatesWhenSpecificDayOfMonthSelected() { var dates = DateCalculator.GenerateDates(2); dates.All(date => date.Day == 2).ShouldBeTrue(); }