public void Should_CalculateSchedule_ThrowException_WhenTheSubscriptionTypeIsIncorrect(SubscriptionMode mode) { // Arrange var sut = new NeverNotificationScheduleStrategy(); // 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 NeverNotificationScheduleStrategy(); // Act var actual = sut.CalculateSchedule(new NeverSubscription(), DateTime.Today, 1); // Assert actual.Should().BeEmpty(); }