コード例 #1
0
ファイル: ShellLifeCycleTests.cs プロジェクト: ultracpy/maui
        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);
        }