public void TestConvert3857to4326Async() { /* * https://developers.onemap.sg/commonapi/convert/3857to4326?Y=146924.54200324757&X=11559656.16256661 * * Example Response:{ * "latitude":1.319728904999991, * "longitude":103.8421581 * } */ CoordinateConverter cc = new CoordinateConverter(); Coordinate input = new Coordinate(); input.Y = 146924.54200324757; input.X = 11559656.16256661; Coordinate actual = cc.Fr3857To4326Async(input).Result; Coordinate expected = new Coordinate(); expected.latitude = 1.319728904999991; expected.longitude = 103.8421581; //X = 28983.7887910798, Y = 33554.5098132845 Assert.AreEqual(expected.longitude, actual.longitude, ToleranceLatLong); Assert.AreEqual(expected.longitude, actual.longitude, ToleranceLatLong); }