public void CollectSearchQueriesTest()
 {
     var strategy = new StackOverflowCollectorStrategy();
     strategy.SearchBaseUrls = _searchUrls;
     strategy.SearchTerms = new List<string> { "C#,ASP,.NET" };
     var actual = strategy.CollectSearchQueries();
     Assert.IsTrue(actual.Contains("http://careers.stackoverflow.com/jobs?searchTerm=C%23%2cASP%2c.NET"));
 }
        public void CollectSearchesTest()
        {
            var strategy = new StackOverflowCollectorStrategy();

            strategy.SearchBaseUrls = _searchUrls;
            strategy.SearchTerms = new List<string> { "C#,ASP,.NET" };
            strategy.CollectSearchQueries();
            strategy.CollectSearches();

            Assert.IsTrue(strategy.SearchResults.Any());
        }
Exemple #3
0
        public void CollectSearchQueriesTest()
        {
            var strategy = new StackOverflowCollectorStrategy();

            strategy.SearchBaseUrls = _searchUrls;
            strategy.SearchTerms    = new List <string> {
                "C#,ASP,.NET"
            };
            var actual = strategy.CollectSearchQueries();

            Assert.IsTrue(actual.Contains("http://careers.stackoverflow.com/jobs?searchTerm=C%23%2cASP%2c.NET"));
        }
Exemple #4
0
        public void CollectSearchesTest()
        {
            var strategy = new StackOverflowCollectorStrategy();

            strategy.SearchBaseUrls = _searchUrls;
            strategy.SearchTerms    = new List <string> {
                "C#,ASP,.NET"
            };
            strategy.CollectSearchQueries();
            strategy.CollectSearches();

            Assert.IsTrue(strategy.SearchResults.Any());
        }