Пример #1
0
        public async Task OnNavigatedFiresWhenPopToRoot()
        {
            Routing.RegisterRoute("AlarmPage", typeof(LifeCyclePage));
            Routing.RegisterRoute("SoundsPage", typeof(LifeCyclePage));
            TestShell shell = new TestShell();

            var item = CreateShellItem(shellContentRoute: ContentRoute, shellSectionRoute: SectionRoute, shellItemRoute: ItemRoute);

            shell.Items.Add(item);

            await shell.GoToAsync("AlarmPage/SoundsPage");

            shell.Reset();

            await shell.Navigation.PopToRootAsync();

            shell.TestCount(1);
        }