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