public void Check_Tax_Band_Three_Income_Tax() { #region Arrange var bandThree = new TaxBandThree(); #endregion #region Act var amount1 = bandThree.Calculate(37000); var amount2 = bandThree.Calculate(37001); var amount3 = bandThree.Calculate(87000); var amount4 = bandThree.Calculate(87001); var amount5 = bandThree.Calculate(60050); #endregion #region Assert Assert.AreEqual(0, amount1); Assert.AreEqual(298, amount2); Assert.AreEqual(1652, amount3); Assert.AreEqual(1652, amount4); Assert.AreEqual(922, amount5); #endregion }
public void Check_Tax_Band_Three_Pay_Amount_Over_LowerLimit() { #region Arrange var bandThree = new TaxBandThree(); #endregion #region Act var amount1 = bandThree.GetPayAmountOverLowerLimit(37000); var amount2 = bandThree.GetPayAmountOverLowerLimit(37001); var amount3 = bandThree.GetPayAmountOverLowerLimit(87000); var amount4 = bandThree.GetPayAmountOverLowerLimit(87001); #endregion #region Assert Assert.AreEqual(0, amount1); Assert.AreEqual(1, amount2); Assert.AreEqual(50000, amount3); Assert.AreEqual(50000, amount4); #endregion }