Пример #1
0
        public async Task PoppingWithQueryString(string input)
        {
            Routing.RegisterRoute("details", typeof(ShellTestPage));
            var shell = new TestShell(CreateShellItem());

            await shell.GoToAsync("details");

            await shell.GoToAsync("ModalTestPage");

            await shell.GoToAsync(new ShellNavigationState($"{input}?{nameof(ShellTestPage.SomeQueryParameter)}=1234"));

            shell.AssertCurrentStateEquals($"//{shell.CurrentItem.CurrentItem.CurrentItem.Route}/details");

            var testPage = shell.CurrentPage as ShellTestPage;

            Assert.AreEqual("1234", testPage.SomeQueryParameter);
        }