public async Task ExtractCss() { var html = await Reader.GetPage(new Uri(_testSiteUrl)).Result.Content.ReadAsStringAsync(); var baseUrl = _testSiteUrl.Substring(0, _testSiteUrl.IndexOf("/threads", StringComparison.Ordinal)); var css = Reader.ExtractCss(html, baseUrl); Assert.IsType <string>(css); }
public void ReturnsString() { Assert.IsType <string>(Reader.GetPage(new Uri(_testSiteUrl))); }