public void MATHFunctionTaxIncrementTest() { GUI.Total = 0; List <BounceHouse> testHouse = new List <BounceHouse>(); testHouse.Add(new BounceHouse("test1", "", "", "", 1000.01, 1)); testHouse.Add(new BounceHouse("test1", "", "", "", 1000.01, 1)); BounceHouse.MATH(testHouse); Assert.AreEqual(2120.02, Math.Round(GUI.Total, 2)); }
public void MATHFunctionTaxDecrementTest() { GUI.Total = 0; GUI.Quantity = 2; List <BounceHouse> testHouse = new List <BounceHouse>(); testHouse.Add(new BounceHouse("test1", "", "", "", 1000.01, 0)); testHouse.Add(new BounceHouse("test1", "", "", "", 1000.01, 1)); BounceHouse.MATH(testHouse); Assert.AreEqual(1060.01, Math.Round(GUI.Total, 2)); }