public void Throws_GoogleMapsApiServiceException() { var nullApiGeocoder = new Geocoder("bad_key", new HttpClient()); Action act1 = () => nullApiGeocoder.ResolveAddressAsync("asdasdasdasd").Wait(); act1.Should().ThrowExactly <GoogleMapsApiServiceException>(); Action act2 = () => nullApiGeocoder.SuggestLocationsAsync("asdasdasdasd").Wait(); act2.Should().ThrowExactly <GoogleMapsApiServiceException>(); }