Пример #1
0
        public void ParseKeyWordsAolDotComTest()
        {
            Uri uri = new Uri("http://search.aol.com/aol/search?invocationType=comsearch30&query=termtie+companies+springboro&do=Search");
            string actual = uri.ParseKeyWords();
            Assert.AreEqual("termtie companies springboro", actual);

            uri = new Uri("http://aim.search.aol.com/search/search?query=41.pestthreat.com&invocationType=TB50TRie7");
            actual = uri.ParseKeyWords();
            Assert.AreEqual("41.pestthreat.com", actual);

            uri = new Uri("http://aolsearch.aol.com/aol/search?invocationType=topsearchbox.search&query=termidor");
            actual = uri.ParseKeyWords();
            Assert.AreEqual("termidor", actual);
        }
Пример #2
0
 public void ParseKeyWordsNetscapeDotComTest()
 {
     Uri uri = new Uri("http://search.hp.netscape.com/hp/search?query=28.PestThreat.com&st=webresults&fromPage=HPResultsT");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("28.PestThreat.com", actual);
 }
Пример #3
0
 public void ParseKeyWordsInformationDotComTest()
 {
     Uri uri = new Uri("http://searchportal.information.com/?epl=01510006R1UMXGYWVlEFDVFQClNQAVcNVA9FUVgMAFxbVllZVFhBURBVUAtLGgJfD0VLAAdBAlw5RwxGChEORUBUWUZuCFRdDGdVBF1QCF4FRUsAB0ECXDlDGkVSXA1cW1MeVW4MUQlTDwFXARIKRz0RWQsNDlU&query=Termites");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("Termites", actual);
 }
Пример #4
0
 public void ParseKeyWordsEntryNotFoundDotComTest()
 {
     Uri uri = new Uri("http://wwww23.entry-not-found.com/search?qo=www.51.pest%2520threat.com&rn=AHbSGJpsHOpxcb_");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("www.51.pest%20threat.com", actual);
 }
Пример #5
0
 public void ParseKeyWordsEmptyUriTest()
 {
     Uri uri = new Uri(string.Empty, UriKind.Relative);
     string actual = uri.ParseKeyWords();
     Assert.AreEqual(null, actual);
 }
Пример #6
0
 public void ParseKeyWordsAttDotNetTest()
 {
     Uri uri = new Uri("http://my.att.net/s/s.dll?num=10&spage=search%2Fresultshome1.htm&searchType=web&string=16+Pest+Threats.com&where=Location+%28e.g.+Address%29&sm.x=7&sm.y=11");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("16 Pest Threats.com", actual);
 }
Пример #7
0
 public void ParseKeyWordsYellowpagesDotComTest()
 {
     Uri uri = new Uri("http://www.yellowpages.com/Fairfax-VA/Pest-Control-Services/city-Fairfax?search_terms=Pest+Control");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("Pest Control", actual);
 }
Пример #8
0
        public void ParseKeyWordsYahooDotComTest()
        {
            Uri uri = new Uri("http://search.yahoo.com/search?fr=cb-hp06&type=advisor&ei=UTF-8&p=13%2epest%20threat%2ecom");
            string actual = uri.ParseKeyWords();
            Assert.AreEqual("13.pest threat.com", actual);

            uri = new Uri("http://yp.yahoo.com/py/ypResults.py?&city=Gaithersburg&state=MD&zip=20882&uzip=20882&msa=8840&slt=39.23&sln=-77.1624&cs=5&stx=8109702&stp=y&desc=Pest+Control&offset=0&FBoffset=20&stat=ClkNxtUpper");
            actual = uri.ParseKeyWords();
            Assert.AreEqual("Pest Control", actual);
        }
Пример #9
0
 public void ParseKeyWordsVerizonDotNetTest()
 {
     Uri uri = new Uri("http://wwwz.websearch.verizon.net/search?qo=www.pest%2520threat.com&rn=yl1ciCfHRyzBX_A");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("www.pest%20threat.com", actual);
 }
Пример #10
0
 public void ParseKeyWordsSwitchboardDotComTest()
 {
     Uri uri = new Uri("http://switchboard.com/swbd.main/dir/results.htm?cid=&MEM=1&ypcobrand=1&PR=&ST=&inputwhat_dirty=1&KW=tabor+pest+control&initial=&inputwhere_dirty=1&LO=dothan%2C+al+36303&SD=-1&semChannelId=&semSessionId=&search.x=58&search.y=15");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("tabor pest control", actual);
 }
Пример #11
0
 public void ParseKeyWordsPestanalysisComTest()
 {
     Uri uri = new Uri("http://46.pestanalysis.com/search.php?d=pestanalysis.com&cachekey=1210547694&rc=true&term=Pest+analysis&append=");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("Pest analysis", actual);
 }