public void CalculateTaxTest5() { decimal shelfPrice = -43.57m; bool isImported = false; bool isExempted = false; Evaluater evaluater = new Evaluater(); Assert.ThrowsException <ShelfPriceNegetiveException>(() => evaluater.CalculateTaxForItem(shelfPrice, isImported, isExempted), "Exception for negetive shelf price was not thrown"); }
public void CalculateTaxTest4() { decimal shelfPrice = 43.57m; bool isImported = false; bool isExempted = false; decimal expected = 4.35m; Evaluater evaluater = new Evaluater(); decimal actual = evaluater.CalculateTaxForItem(shelfPrice, isImported, isExempted); Assert.AreEqual(expected, actual, "The actual calculated tax and expected tax are not equal"); }