public void cannot_shutdown_current_if_current_does_not_allow()
        {
            activeScreen.CanCloseResult = false;
            ScreenConductor.ActiveItem  = activeScreen;
            CallProc(ScreenConductor, "Activate");

            ScreenConductor.CloseItem(activeScreen);

            activeScreen.IsActive.ShouldBeTrue();
        }
Пример #2
0
        private void CloseItem(T item)
        {
            if (item == null)
            {
                return;
            }

            if (!CanCloseItem(item))
            {
                return;
            }

            _conductor.CloseItem(item);
        }