public void WebCallShouldReturnCorrectIndexes() { List <string> lstAllResults = new List <string>(); lstAllResults.Add("https://www.leapconveyancer.com.au/&sa=U&ved=2ahUKEwixqujU74vvAhXjHrkGHSsfB7kQFjAAegQIShAB&usg=AOvVaw3lOAY3YPQxP1eSCiOKo8-M"); lstAllResults.Add("https://www.smokeball.com.au/conveyancing.html&sa=U&ved=2ahUKEwixqujU74vvAhXjHrkGHSsfB7kQFjABegQIYhAB&usg=AOvVaw1Bncq13b2SdLx78j6aZToX"); lstAllResults.Add("https://www.leap.com.au/area-of-law/conveyancing/&sa=U&ved=2ahUKEwixqujU74vvAhXjHrkGHSsfB7kQFjACegQIXxAB&usg=AOvVaw3mTK6b73eZvY9ogd4iEfKv"); lstAllResults.Add("https://www.smokeball.com.au/index.html&sa=U&ved=2ahUKEwirysDI1YnvAhVTrZ4KHTa-DqgQFjADegQIWBAB&usg=AOvVaw339XH2y2ZUhFrd9DNb0ehg"); var results = m_IWebCall.GetLinkPositionsInResults(lstAllResults, "www.smokeball.com.au"); Assert.IsTrue(results.Length > 0); Assert.AreEqual("2,4", results); }