public void TestNoDiscount()
 {
     Discount discountPrice = new Discount();
     double result = discountPrice.calculateDiscount(500);
     Assert.AreEqual(500, result);
 }
 public void TestExceptionwithCero()
 {
     Discount discountPrice = new Discount();
     discountPrice.calculateDiscount(0);
     Assert.Fail("ArgumentException");
 }
 public void TestDiscountPriceFivePercent()
 {
     Discount discountPrice = new Discount();
     double result = discountPrice.calculateDiscount(1900);
     Assert.AreEqual(1805, result);
 }
 public void TestDiscountPriceTenPercent()
 {
     Discount discountPrice = new Discount();
     double result = discountPrice.calculateDiscount(2000);
     Assert.AreEqual(1800, result);
 }
 public void TestDiscountPricefiftyPercent()
 {
     Discount discountPrice = new Discount();
     double result = discountPrice.calculateDiscount(5500);
     Assert.AreEqual(2750, result);
 }