예제 #1
0
 public void GetDiscountAmountThrowsArgNullExceptionWhenPassingNull()
 {
     Assert.Throws <ArgumentNullException>(() => discount.GetDiscountAmount(null));
 }
예제 #2
0
 public void CalculateDiscount()
 {
     Discount = discount.GetDiscountAmount(cartItems);
 }