public void EncodeAddress_Fails(string address) { IGeoCodingAgent agent = new OSMGeoCodingAgent(); Location location = agent.EncodeAddress(address); Assert.Null(location); }
public void EncodeAddress_IsOK(string address, double latitude, double longitude) { IGeoCodingAgent agent = new OSMGeoCodingAgent(); Location location = agent.EncodeAddress(address); Assert.Equal(latitude, location.Latitude); Assert.Equal(longitude, location.Longitude); }