Exemplo n.º 1
0
        public void GetGstErrorTest(decimal total, decimal totalExcludingGst)
        {
            var ex = Assert.Throws <ArgumentOutOfRangeException>(() => PriceCalculator.GetGST(total, totalExcludingGst));

            Assert.Equal("Total is negative!\nParameter name: total", ex.Message);
        }
Exemplo n.º 2
0
        public void GetGstTest(decimal total, decimal totalExcludingGst, decimal expected)
        {
            var actual = PriceCalculator.GetGST(total, totalExcludingGst);

            Assert.Equal(expected, actual);
        }