public void GetPercentageDiscountTest() { calculateDiscount_Accessor target = new calculateDiscount_Accessor(); dtDiscountData.Add("Employee", 30); dtDiscountData.Add("Affiliate", 10); dtDiscountData.Add("ExistingCustomerMoreThanTwoyrs", 5); dtDiscountData.Add("NonExistingCust", 0); calculateDiscount_Accessor.dtDiscountData = dtDiscountData;; string custID = "22222"; int expected = 10; int actual; actual = target.GetPercentageDiscount(custID); Assert.AreEqual(expected, actual); }
public void GetPercentageDiscountTest() { calculateDiscount_Accessor target = new calculateDiscount_Accessor(); // TODO: Initialize to an appropriate value string custID = string.Empty; // TODO: Initialize to an appropriate value int expected = 0; // TODO: Initialize to an appropriate value int actual; actual = target.GetPercentageDiscount(custID); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void calculateDiscountConstructorTest() { calculateDiscount_Accessor target = new calculateDiscount_Accessor(); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void calculateDiscountConstructorTest() { calculateDiscount_Accessor target = new calculateDiscount_Accessor(); }