Azavea.Open.Geocoding.Google.Tests.GoogleTests.TestGoogleGeocoderCityOnly C# (CSharp) Метод

TestGoogleGeocoderCityOnly() приватный Метод

private TestGoogleGeocoderCityOnly ( ) : void
Результат void
        public void TestGoogleGeocoderCityOnly()
        {
            Console.WriteLine("Test - Google Geocoder City Only");
            GeocodeRequest gr = new GeocodeRequest();
            gr.TextString = "Burlington VT US";

            GeocodeResponse gRes = _googleGeocoder.Geocode(gr);
            TestUtils.OutputGeocodeResponses(gRes);
            Assert.IsTrue(gRes.HasCandidates, "Google Geocoder returned no responses");
            Assert.AreEqual("locality", gRes.Candidates[0].MatchType, "Google Geocoder returned wrong MatchType for locality");
        }