public void EnsureLocationConverterConvertsToAGeoCoordinate() { Location location = new Location() { Latitude = TestLatitude, Longitude = TestLongitude }; LocationConverter converter = new LocationConverter(); GeoCoordinate coord = converter.Convert(location, typeof(GeoCoordinate), null, null) as GeoCoordinate; Assert.AreEqual(location.Latitude, coord.Latitude, "Expected same Latitude"); Assert.AreEqual(location.Longitude, coord.Longitude, "Expected same Longitude"); }
public void EnsureLocationConverterReturnsNullForConvertBack() { LocationConverter converter = new LocationConverter(); Assert.IsNull(converter.ConvertBack(string.Empty, null, null, null), "Expected null result"); }