Esempio n. 1
0
        public async Task WikiaCategoryMembersGeneratorTest()
        {
            var site = await WikiaTestSiteAsync;
            var cat  = new CategoryPage(site, "Category:BlogListingPage‏‎‏‎");
            await cat.RefreshAsync();

            Output.WriteLine(cat.ToString());
            var generator = new CategoryMembersGenerator(cat)
            {
                PagingSize = 50
            };
            var pages = generator.EnumPages().ToList();

            TracePages(pages);
            AssertTitlesDistinct(pages);
            Assert.Equal(cat.MembersCount, pages.Count);
        }