Exemplo n.º 1
0
        public void GivenGSTAmount_WhenAmountWithGST_ThenGSTIsReturned(decimal amountWithGST, decimal expected)
        {
            decimal gstAmount = new GSTCalculator().CalculateGSTAmount(amountWithGST);

            output.WriteLine($"GSTAmount [{gstAmount}]");
            Assert.Equal(expected, gstAmount);
        }
Exemplo n.º 2
0
        public void GivenAmountWithoutGST_WhenAmountWithGST_ThenAmountWithoutGSTIsReturned(decimal amountWithGST, decimal expected)
        {
            decimal amountWithoutGST = new GSTCalculator().CalculateAmountWithoutGST(amountWithGST);

            Assert.Equal(expected, amountWithoutGST);
        }