public async Task CreateHttpClientShouldDownloadAHttpsUri() { var result = await HtmlDownload.CreateHttpClient(new Uri(HttpsWorkingUrl)); result.Should().NotBeEmpty(); }
public async Task CreateWebRequestShouldDownloadAHttpUri() { var result = await HtmlDownload.CreateWebRequest(new Uri(HttpWorkingUrl)); result.Should().NotBeEmpty(); }
public void CreateHttpClientSyncShouldDownloadAHttpsUri() { var result = HtmlDownload.CreateHttpClientSync(new Uri(HttpsWorkingUrl)); result.Should().NotBeEmpty(); }
public void CreateHttpClientSyncShouldThrowWhenUriNotExist() { Action act = () => HtmlDownload.CreateHttpClientSync(new Uri(HttpsNonWorkingUrl)); act.Should().Throw <Exception>(); }
private string MakeTest(string url) { return(HtmlDownload.GetHtmlPage(url)); }