public void CountryInfoReturnsCountryInfo() { var countryInfoClient = new TestableCountryInfo(webClient.Object); countryInfoClient.Run("Bolivia"); this.webClient.Verify(x => x.DownloadString(It.IsAny <string>()), Times.Once); }
public void CountryInfoDoesNotThrowsIfNoResult() { this.webClient.Setup(x => x.DownloadString(It.IsAny <string>())).Returns(""); var countryInfoClient = new TestableCountryInfo(webClient.Object); countryInfoClient.Run("Bolivia"); this.webClient.Verify(x => x.DownloadString(It.IsAny <string>()), Times.Once); }