public static void TestGetGSTComponentOfGSTInclusiveValue() { Assert.AreEqual(15d + "", "" + Numbers.GetGSTComponentOfGSTInclusiveValue(115d)); // this will die after 1 oct 2010 Assert.AreEqual(12.5d + "", "" + Numbers.GetGSTComponentOfGSTInclusiveValue(112.5d, 12.5d)); Assert.AreEqual(15.0d + "", "" + Numbers.GetGSTComponentOfGSTInclusiveValue(115.0d, 15.0d)); Assert.AreEqual(11.09 + "", "" + Numbers.GetGSTComponentOfGSTInclusiveValue(85.0d, 15.0d)); Assert.AreEqual(35.1 + "", "" + Numbers.GetGSTComponentOfGSTInclusiveValue(269.1, 15.0d)); //234 Assert.AreEqual((269.1) + "", "" + Numbers.AddGSTToNonGSTInclusiveValue(234d, 15.0d)); //234 Assert.AreEqual(35.1 + "", "" + Numbers.GetGSTToAddToNonGSTInclusiveValue(234, 15.0d)); //234 Assert.AreEqual(396.52 + "", "" + Numbers.GetAmountExcludingGST(456, 15.0d)); }