Exemple #1
0
        public async Task WpTest2PageReadRedirectTest()
        {
            var site = await WpTest2SiteAsync;
            var page = new WikiPage(site, "Foo");
            await page.RefreshAsync();

            Assert.True(page.IsRedirect);
            var target = await page.GetRedirectTargetAsync();

            ShallowTrace(target);
            Assert.Equal("Foo24", target.Title);
            Assert.True(target.RedirectPath.SequenceEqual(new[] { "Foo", "Foo2", "Foo23" }));
        }