Пример #1
0
        public async Task HandlerUpdatesDontFireForLegacy(bool withPage)
        {
            TestNavigationPage nav =
                new TestNavigationPage(false, (withPage) ? new ContentPage() : null);

            var handler = new TestNavigationHandler();

            (nav as IView).Handler = handler;


            Assert.IsNull(nav.CurrentNavigationTask);
            Assert.IsNull(handler.CurrentNavigationRequest);
        }
Пример #2
0
        public async Task HandlerUpdatesFireWithStartingPage(bool withPage)
        {
            TestNavigationPage nav =
                new TestNavigationPage(true, (withPage) ? new ContentPage() : null);

            var handler = new TestNavigationHandler();

            (nav as IView).Handler = handler;

            if (!withPage)
            {
                Assert.IsNull(nav.CurrentNavigationTask);
            }
            else
            {
                Assert.IsNotNull(nav.CurrentNavigationTask);
            }
        }