public void GetTaxes_IncorrectlyConfigured_ShouldReturn0() { Assert.AreEqual(calc_bad.GetTaxes(TestEngine.Order_FL_FL), 0, 0.000001); Assert.AreEqual(calc_bad.GetTaxes(TestEngine.Order_ON_QC_WithShipping), 0, 0.000001); }
public void GetTaxes_ReturnsCorrectValue() { Assert.AreEqual(calc.GetTaxes(TestEngine.Order_FL_FL), 2.1, 0.000001); Assert.AreEqual(calc.GetTaxes(TestEngine.Order_ON_QC_WithShipping), 4.05, 0.000001); }