Exemple #1
0
        public void BreakingBadQuotesReturnsPrice()
        {
            var quoteClient = new TestableBreakingBadQuotes(webClient.Object);

            quoteClient.Run();
            this.webClient.Verify(x => x.DownloadString(It.IsAny <string>()), Times.Once);
        }
Exemple #2
0
        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);
        }