public void TestTax() { ResidentPayRecord p = new ResidentPayRecord(1, hours, rates); double ActualTax = p.Tax; double ExpectedTax = TaxCalculator.CalculateResidentialTax(p.Gross); Assert.AreEqual(ExpectedTax, ActualTax); }
public void TestNet() { ResidentPayRecord p = new ResidentPayRecord(1, hours, rates); double ExpectedNet = p.Gross - p.Tax; double ActualNet = p.Net; Assert.AreEqual(ActualNet, ExpectedNet); }
public void TestGross() { ResidentPayRecord p = new ResidentPayRecord(1, hours, rates); double ExpectedGross = 652.00; double ActualGross = p.Gross; Assert.AreEqual(ExpectedGross, ActualGross); }