public void FineIsDaysLateTimesBasis() { var daysLate = 1; Assert.That(policy.FineAmount(daysLate++), Is.EqualTo(BookCheckoutPolicy.DailyFineBasis * 1)); Assert.That(policy.FineAmount(daysLate++), Is.EqualTo(BookCheckoutPolicy.DailyFineBasis * 2)); Assert.That(policy.FineAmount(daysLate), Is.EqualTo(BookCheckoutPolicy.DailyFineBasis * 3)); }
public void FineIsDaysLateTimesBasis() { var daysLate = 1; Assert.Equal(BookCheckoutPolicy.DailyFineBasis * 1, policy.FineAmount(daysLate++)); Assert.Equal(BookCheckoutPolicy.DailyFineBasis * 2, policy.FineAmount(daysLate++)); Assert.Equal(BookCheckoutPolicy.DailyFineBasis * 3, policy.FineAmount(daysLate)); }
public void DailyAccumulatingFine() { var daysLate = 1; Assert.That(policy.FineAmount(daysLate++), Is.EqualTo(MovieCheckoutPolicy.PenaltyAmount + MovieCheckoutPolicy.DailyFineBasis * 1)); Assert.That(policy.FineAmount(daysLate++), Is.EqualTo(MovieCheckoutPolicy.PenaltyAmount + MovieCheckoutPolicy.DailyFineBasis * 2)); Assert.That(policy.FineAmount(daysLate), Is.EqualTo(MovieCheckoutPolicy.PenaltyAmount + MovieCheckoutPolicy.DailyFineBasis * 3)); }
public void DailyAccumulatingFine() { var daysLate = 1; Assert.Equal(MovieCheckoutPolicy.PenaltyAmount + MovieCheckoutPolicy.DailyFineBasis * 1, policy.FineAmount(daysLate++)); Assert.Equal(MovieCheckoutPolicy.PenaltyAmount + MovieCheckoutPolicy.DailyFineBasis * 2, policy.FineAmount(daysLate++)); Assert.Equal(MovieCheckoutPolicy.PenaltyAmount + MovieCheckoutPolicy.DailyFineBasis * 3, policy.FineAmount(daysLate)); }