Exemplo n.º 1
0
        public void PBScrape_GetsURLTitle_IsTrue()
        {
            //Arrange
            string   Keyword   = "Wikipedia test";
            string   Url       = "https://www.wikipedia.org";
            PBScrape newScrape = new PBScrape(Keyword);

            newScrape.SetUrl(Url);
            //Act
            object ParseObject = newScrape.GetTitleHtml(newScrape.GetUrl());

            //Assert
            Assert.AreEqual("Wikipedia", ParseObject);
        }