public void ShouldReturn0WhenAMountIs0()
        {
            var calculator = new FlateRateCalculator();
            var result     = calculator.CalulateTax(0);

            Assert.AreEqual(0m, result);
        }
        public void ShouldRetur17AndAHalfPercentForAllValidAmounts()
        {
            var calculator = new FlateRateCalculator();
            var result     = calculator.CalulateTax(10000);

            Assert.AreEqual(1750m, result);
        }
Example #3
0
        public void ShouldThrowInvalidAmountExcetionWhenANegativeAmount()
        {
            var calculator = new FlateRateCalculator();

            Assert.Throws <InvalidFlatTaxAmountException>(() => calculator.CalulateTax(-200000));
        }