Beispiel #1
0
        public void Schedule_Z_Calculation_Minimum()
        {
            //input values
            double income = 12950;
            string status = "hoh";

            //expected output
            double amountDue = 1295;

            //select schedule and calculate amount due
            CalculateTaxRate calc = new CalculateTaxRate(status, income);

            calc.CalculateTaxesDue(status);
            //determine value of test
            Assert.AreEqual(amountDue, calc.getTaxAmountDue());
        }
        public void Schedule_Y2_Calculation_GradeD()
        {
            //input values
            double income = 200000;
            string status = "mfs";

            //expected output
            double amountDue = 53952.25;

            //select schedule and calculate amount due
            CalculateTaxRate calc = new CalculateTaxRate(status, income);

            calc.CalculateTaxesDue(status);

            //determine value of test
            Assert.AreEqual(amountDue, calc.getTaxAmountDue());
        }