public void PauseInputKeyReleased_TimeService_DoesNotToggle() { _inputHandler = new PauseInputHandler(_timeService); _inputHandler.HandleButtonInput(EInputKey.TogglePause, false); Assert.IsNull(_timeService.SetPauseStatusResult); }
public void PauseInputKeyPressed_TimeServiceUnpaused_TogglesPause() { _inputHandler = new PauseInputHandler(_timeService); _timeService.GetPauseStatusResult = EPauseStatus.Unpaused; _inputHandler.HandleButtonInput(EInputKey.TogglePause, true); Assert.AreEqual(EPauseStatus.Paused, _timeService.SetPauseStatusResult); }
public void PauseInputKeyPressed_TimeService_Handled() { _inputHandler = new PauseInputHandler(_timeService); Assert.AreEqual(EInputHandlerResult.Handled, _inputHandler.HandleButtonInput(EInputKey.TogglePause, true)); }