public void TestGetHtml() { search = new GoogleSearch(ht, apiKey); string htmlContent = search.GetHtml(); Assert.IsNotNull(htmlContent); //Console.WriteLine(htmlContent); Assert.IsTrue(htmlContent.Contains("</body>")); // Release socket connection search.Close(); }