Exemple #1
0
        public void WebCallShouldReturnCorrectIndexes()
        {
            List <string> lstAllResults = new List <string>();

            lstAllResults.Add("https://www.leapconveyancer.com.au/&amp;sa=U&amp;ved=2ahUKEwixqujU74vvAhXjHrkGHSsfB7kQFjAAegQIShAB&amp;usg=AOvVaw3lOAY3YPQxP1eSCiOKo8-M");
            lstAllResults.Add("https://www.smokeball.com.au/conveyancing.html&amp;sa=U&amp;ved=2ahUKEwixqujU74vvAhXjHrkGHSsfB7kQFjABegQIYhAB&amp;usg=AOvVaw1Bncq13b2SdLx78j6aZToX");
            lstAllResults.Add("https://www.leap.com.au/area-of-law/conveyancing/&amp;sa=U&amp;ved=2ahUKEwixqujU74vvAhXjHrkGHSsfB7kQFjACegQIXxAB&amp;usg=AOvVaw3mTK6b73eZvY9ogd4iEfKv");
            lstAllResults.Add("https://www.smokeball.com.au/index.html&amp;sa=U&amp;ved=2ahUKEwirysDI1YnvAhVTrZ4KHTa-DqgQFjADegQIWBAB&amp;usg=AOvVaw339XH2y2ZUhFrd9DNb0ehg");
            var results = m_IWebCall.GetLinkPositionsInResults(lstAllResults, "www.smokeball.com.au");

            Assert.IsTrue(results.Length > 0);
            Assert.AreEqual("2,4", results);
        }