コード例 #1
0
        public void EncodeAddress_Fails(string address)
        {
            IGeoCodingAgent agent    = new OSMGeoCodingAgent();
            Location        location = agent.EncodeAddress(address);

            Assert.Null(location);
        }
コード例 #2
0
        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);
        }