示例#1
0
        public void GetTaxCost_IsImported_NonExempt()
        {
            decimal price    = 47.50M;
            bool    isImport = true;
            bool    isExempt = false;

            RecieptGenerator.Calculation tax = new RecieptGenerator.Calculation();
            var result = tax.GetTaxCost(price, isImport, isExempt);

            Assert.AreEqual(result, 7.15M);
        }
示例#2
0
        public void GetTaxCost_NotImported_Exempt()
        {
            decimal price    = 10.00M;
            bool    isImport = true;
            bool    isExempt = true;

            RecieptGenerator.Calculation tax = new RecieptGenerator.Calculation();
            var result = tax.GetTaxCost(price, isImport, isExempt);

            Assert.AreEqual(result, 0.50M);
        }