public void ToRt90_FromWebMercator(double lat, double lng, double expectedLat, double expectedLng, int decimals) { var pos = new WebMercatorPosition(lat, lng); var converted = PositionConverter.ToRt90(pos); Assert.AreEqual(Math.Round(expectedLat, decimals, MidpointRounding.AwayFromZero), Math.Round(converted.Latitude, decimals, MidpointRounding.AwayFromZero)); Assert.AreEqual(Math.Round(expectedLng, decimals, MidpointRounding.AwayFromZero), Math.Round(converted.Longitude, decimals, MidpointRounding.AwayFromZero)); }