public void Should_CalculateSchedule_ThrowException_WhenTheSubscriptionTypeIsIncorrect(SubscriptionMode mode) { // Arrange var sut = new DailyNotificationScheduleStrategy(); // Act Action action = () => sut.CalculateSchedule(_fixture.GetSubscription(mode), DateTime.Today, 1); // Assert action.Should().Throw <ArgumentException>(); }
public void Should_CalculateSchedule_ReturnTheCorrectDateRange_WhenStartDateAndNumberOfDaysAreValid() { // Arrange var sut = new DailyNotificationScheduleStrategy(); // Act var actual = sut.CalculateSchedule(new DailySubscription(), DateTime.Today, 1); // Assert actual.Should().ContainInOrder(DateTime.Today); }