Пример #1
0
        public async Task WikiaEnumRevisionsTest2()
        {
            var site = await WikiaTestSiteAsync;
            var page = new WikiPage(site, "Project:Sandbox");
            var gen  = page.CreateRevisionsGenerator();

            gen.PaginationSize = 500;
            var revisions = await gen.EnumItemsAsync().Take(2000).ToListAsync();

            Assert.True(revisions.SequenceEqual(revisions.OrderByDescending(r => r.TimeStamp)));
            ShallowTrace(revisions);
        }
Пример #2
0
        public async Task WpTestEnumRevisionsTest2()
        {
            var site = await WpTest2SiteAsync;
            // 5,100 revisions in total
            var page = new WikiPage(site, "Page:Edit_page_for_chrome");
            var gen  = page.CreateRevisionsGenerator();

            gen.PaginationSize = 500;
            var revisions = await gen.EnumItemsAsync().Take(2000).ToListAsync();

            Assert.True(revisions.SequenceEqual(revisions.OrderByDescending(r => r.TimeStamp)));
            ShallowTrace(revisions);
        }