Exemplo n.º 1
0
        public void ShouldExtractHtmlTags()
        {
            //Arrange
            ParserService parserService = new ParserService();
            var           pathToHtml    = "HTMLPageTest.html";
            string        url           = "https://en.m.wikipedia.org/wiki/Medicine";
            //Act
            List <string> links = parserService.GetLinksFromHtml(pathToHtml, url);

            //Assert
            Assert.AreEqual(3, links.Count);
        }