public void BreakingBadQuotesReturnsPrice() { var quoteClient = new TestableBreakingBadQuotes(webClient.Object); quoteClient.Run(); this.webClient.Verify(x => x.DownloadString(It.IsAny <string>()), Times.Once); }
public void BreakingBadQuotesDoesNotThrowsIfNoResult() { this.webClient.Setup(x => x.DownloadString(It.IsAny <string>())).Returns(""); var quoteClient = new TestableBreakingBadQuotes(webClient.Object); quoteClient.Run(); this.webClient.Verify(x => x.DownloadString(It.IsAny <string>()), Times.Once); }