public void CanDownloadRealSearch() { var search = new Search(); var results = search.SearchAnywhere("mandeville's travels"); var count = 0; foreach (var result in results) { Repository.Save(result); Debug.WriteLine("#" + count + ": " + result.title); count++; } Assert.IsTrue(count > 200, "Count too low"); count++; }
public void SearchReturnsResults() { var search = new Search(); var results = search.SearchAnywhere("mandeville's travels"); Assert.AreEqual(1, results.Take(1).Count()); }
public void ExtensionMethodReturnsCitations() { var search = new Search(); var results = search.SearchAnywhere("mandeville's travels"); var citations = results.First().Citations().ToList(); Assert.Greater(citations.Count, 0); }