Пример #1
0
        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));
        }
Пример #2
0
        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));
        }