public void BitCoinPricesReturnsPrice() { var bitCoinClient = new TestableBitcoinPrices(webClient.Object); bitCoinClient.Run(); this.webClient.Verify(x => x.DownloadString(It.IsAny <string>()), Times.Once); }
public void BitCoinPricesDoesNotThrowsIfNoResult() { this.webClient.Setup(x => x.DownloadString(It.IsAny <string>())).Returns(""); var bitCoinClient = new TestableBitcoinPrices(webClient.Object); bitCoinClient.Run(); this.webClient.Verify(x => x.DownloadString(It.IsAny <string>()), Times.Once); }