public void NavigateTo_RegisterEventHandlersIsOnlyCalledOnce()
        {
            TestableWindowNavigationTarget target = new TestableWindowNavigationTarget();
            MockNavigationBase navigationBase = new MockNavigationBase();
            object page = new object();

            Assert.Equal(0, target.RegisterEventHandlersCallCount);

            target.NavigateTo(page, navigationBase);
            target.NavigateTo(page, navigationBase);

            Assert.Equal(1, target.RegisterEventHandlersCallCount);
        }
        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);
        }