示例#1
0
        public void PauseInputKeyReleased_TimeService_DoesNotToggle()
        {
            _inputHandler = new PauseInputHandler(_timeService);

            _inputHandler.HandleButtonInput(EInputKey.TogglePause, false);

            Assert.IsNull(_timeService.SetPauseStatusResult);
        }
示例#2
0
        public void PauseInputKeyPressed_TimeServiceUnpaused_TogglesPause()
        {
            _inputHandler = new PauseInputHandler(_timeService);

            _timeService.GetPauseStatusResult = EPauseStatus.Unpaused;

            _inputHandler.HandleButtonInput(EInputKey.TogglePause, true);

            Assert.AreEqual(EPauseStatus.Paused, _timeService.SetPauseStatusResult);
        }
示例#3
0
        public void PauseInputKeyPressed_TimeService_Handled()
        {
            _inputHandler = new PauseInputHandler(_timeService);

            Assert.AreEqual(EInputHandlerResult.Handled, _inputHandler.HandleButtonInput(EInputKey.TogglePause, true));
        }