public void CalculateDiscount_Test7() { //Arrange var discountRule = new BuyXDiscountTotal(TestData.ProductOne, 5, 30); //Action Action action = () => discountRule.CalculateDiscount(null); //Asset Assert.ThrowsException <ArgumentNullException>(action); }
public void CalculateDiscount_Test4() { //Arrange var basket = new Basket(); var discountRule = new BuyXDiscountTotal(TestData.ProductOne, 5, 30); var expectedResult = 0; //Action var result = discountRule.CalculateDiscount(basket); //Asset Assert.AreEqual(expectedResult, result); }