public void NavigateTo_SetsWindowContent()
        {
            TestableWindowNavigationTarget target = new TestableWindowNavigationTarget();
            MockNavigationBase navigationBase = new MockNavigationBase();

            object page = new object();
            target.NavigateTo(page, navigationBase);

            Assert.Equal(new object[] { page }, target.SetWindowContentCalls);
        }
        public void NavigateTo_FirstCallRegistersEventHandlers()
        {
            TestableWindowNavigationTarget target = new TestableWindowNavigationTarget();
            MockNavigationBase navigationBase = new MockNavigationBase();
            object page = new object();

            Assert.Equal(0, target.RegisterEventHandlersCallCount);

            target.NavigateTo(page, navigationBase);

            Assert.Equal(1, target.RegisterEventHandlersCallCount);
        }