public void ShouldReturnNoLinkFromInvalidATag() { var htmlReader = new HtmlReader(); var result = htmlReader.GetLinksFromText(this.GetInvalidTestHtmlData()); result.Count().Should().Be(0); }
public void ShouldReturnLinkFromATag() { var htmlReader = new HtmlReader(); var result = htmlReader.GetLinksFromText(this.GetValidTestHtmlData()); result.First().Should().Be("https://www.orf.at"); }