示例#1
0
        public void ShouldReturnNoLinkFromInvalidATag()
        {
            var htmlReader = new HtmlReader();
            var result     = htmlReader.GetLinksFromText(this.GetInvalidTestHtmlData());

            result.Count().Should().Be(0);
        }
示例#2
0
        public void ShouldReturnLinkFromATag()
        {
            var htmlReader = new HtmlReader();
            var result     = htmlReader.GetLinksFromText(this.GetValidTestHtmlData());

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