Exemplo n.º 1
0
        public void ShouldReturnNoLinkFromInvalidATag()
        {
            var htmlReader = new HtmlReader();
            var result     = htmlReader.GetLinksFromText(this.GetInvalidTestHtmlData());

            result.Count().Should().Be(0);
        }
Exemplo n.º 2
0
        public void ShouldReturnLinkFromATag()
        {
            var htmlReader = new HtmlReader();
            var result     = htmlReader.GetLinksFromText(this.GetValidTestHtmlData());

            result.First().Should().Be("https://www.orf.at");
        }