Ejemplo n.º 1
0
        public void ValidUrl_ValidKeyword()
        {
            IParser l_Parser = new GoogleParser(new HttpManager());

            var l_Result = l_Parser.FindTopPosition("http://www.espncricinfo.com", "cricket", 100);

            Assert.AreEqual(1, l_Result.Count);
        }
Ejemplo n.º 2
0
        public void InvalidUrl_ValidKeyword()
        {
            IParser l_Parser = new GoogleParser(new HttpManager());

            var l_Result = l_Parser.FindTopPosition("invalidURL", "xya", 100);

            Assert.AreEqual(0, l_Result.Count);
        }