Azavea.Open.Geocoding.Google.Tests.GoogleTests.TestIntersection C# (CSharp) Method

TestIntersection() private method

private TestIntersection ( ) : void
return void
        public void TestIntersection()
        {
            GeocodeRequest gr = new GeocodeRequest();
            gr.TextString = "12th st and callowhill, philadelphia, pa";

            GeocodeResponse gRes = _googleGeocoder.Geocode(gr);
            TestUtils.OutputGeocodeResponses(gRes);
            Assert.AreEqual(1, gRes.Candidates.Count, "Expected the geocoder to return 1 result");
            Assert.AreEqual("intersection", gRes.Candidates[0].MatchType, "Expected the match type to be 'intersections'");
            Assert.AreEqual("North 12th Street & Callowhill Street, Philadelphia, PA 19123, USA", gRes.Candidates[0].StandardizedAddress);
        }