public async Task WikiaAllCategoriesGeneratorTest() { var site = await WikiaTestSiteAsync; var generator = new AllCategoriesGenerator(site); var pages = generator.EnumPages().Take(2000).ToList(); TracePages(pages); AssertTitlesDistinct(pages); }
public async Task WpAllCategoriesGeneratorTest() { var site = await WpTest2SiteAsync; var generator = new AllCategoriesGenerator(site); var pages = generator.EnumPages().Take(2000).ToList(); TracePages(pages); generator = new AllCategoriesGenerator(site) { StartTitle = "C", PagingSize = 20 }; pages = generator.EnumPages(PageQueryOptions.FetchContent).Take(100).ToList(); TracePages(pages); AssertTitlesDistinct(pages); }