public void NavigateToPage_NullFrameReference_NoExceptionThrown()
        {
            Frame nullFrame  = null;
            var   navService = new NavigationFrame {
                Frame = nullFrame
            };

            navService.NavigateToPage(typeof(Page));
        }
        public void NavigateToPage_PageType_NavigatesToPage()
        {
            var expectedType = typeof(Page);
            var testFrame    = new Frame();
            var navService   = new NavigationFrame {
                Frame = testFrame
            };

            navService.NavigateToPage(expectedType);

            var actualType = testFrame.Content.GetType();

            Assert.AreEqual(expectedType, actualType);
        }
        public void NavigateToPage_NullType_NoExceptionThrown()
        {
            var expectedFrame = new Frame();

            if (expectedFrame == null)
            {
                Assert.Fail("Could not initialize a frame for testing.");
                return;
            }
            var navService = new NavigationFrame {
                Frame = expectedFrame
            };

            navService.NavigateToPage(null);
        }