public void TestConversion() { Location location = new Location() { Latitude = TestLatitude, Longitude = TestLongitude }; GeoCoordinate coord = location.ToGeoCoordinate(); Assert.AreEqual(location.Latitude, coord.Latitude, "Expected same Latitude"); Assert.AreEqual(location.Longitude, coord.Longitude, "Expected same Longitude"); }
public void TestConversion() { Location location = new Location() { Latitude = TestLatitude, Longitude = TestLongitude, HorizontalAccuracy = TestHorizontalAccuracy }; GeoCoordinate coord = location.ToGeoCoordinate(); Assert.AreEqual(location.Latitude, coord.Latitude, "Expected same Latitude"); Assert.AreEqual(location.Longitude, coord.Longitude, "Expected same Longitude"); Assert.AreEqual(location.HorizontalAccuracy, coord.HorizontalAccuracy, "Expected same Horizontal Accuracy"); }