public void When_getting_info_Then_works() { var info = this.geo.GetAddressInformation("304 Rockland, Ville Mont-Royal, QC, CA"); Assert.That(info, Is.Not.Null); Assert.That(info.Type, Is.EqualTo("street_address")); Assert.That(info.FormattedAddress, Is.EqualTo("304 Chemin Rockland, Mont-Royal, QC H3P 2W6, Canada")); ComparisonHelper.CompareCoordinates(info.Coordinates, new Coordinates(-73.62904170, 45.52085170), 0.0001); Assert.That(info.Components, Has.Length.EqualTo(7)); Assert.That(info.Components[0], Is.EqualTo(new AddressInformationComponent("304", "304", new string[] { "street_number" }))); Assert.That(info.Components[1], Is.EqualTo(new AddressInformationComponent("Chemin Rockland", "Chemin Rockland", new string[] { "route" }))); Assert.That(info.Components[2], Is.EqualTo(new AddressInformationComponent("Mont-Royal", "Mont-Royal", new string[] { "locality", "political" }))); Assert.That(info.Components[3], Is.EqualTo(new AddressInformationComponent("Communauté-Urbaine-de-Montréal", "Communauté-Urbaine-de-Montréal", new string[] { "administrative_area_level_2", "political" }))); Assert.That(info.Components[4], Is.EqualTo(new AddressInformationComponent("Québec", "QC", new string[] { "administrative_area_level_1", "political" }))); Assert.That(info.Components[5], Is.EqualTo(new AddressInformationComponent("Canada", "CA", new string[] { "country", "political" }))); Assert.That(info.Components[6], Is.EqualTo(new AddressInformationComponent("H3P 2W6", "H3P 2W6", new string[] { "postal_code" }))); }