public void GetContent_ContentWasFound_ContentIsCorrect() { WebDownloaderResult result = WebDownloader.GetContent("http://laboru.co/hello.txt"); Assert.AreEqual("hello", result.HtmlContent); }
public void GetContent_UrlIsNotFound_ResponseStatusIsUrlNotFound() { WebDownloaderResult result = WebDownloader.GetContent("http://laboru.co/hello.tx"); Assert.AreEqual(true, result.Status == DownloadResultStatus.UrlNotFound); }
public void GetContent_ContentWasFound_HtmlHasContent() { WebDownloaderResult result = WebDownloader.GetContent("http://laboru.co/hello.txt"); Assert.AreEqual(true, !String.IsNullOrEmpty(result.HtmlContent)); }