Example #1
0
 @Test
 public void whenInputIsInvalid_OutputErrorOutput() {
   _outputMock.setValidationResult(false);
   _gameStep.onInput("");
   _gameStep.onInput("Faulty Input");
   assertEquals("ErrorOutput", _textCommandHandler.getLastOutput());
 }
Example #2
0
 @Test
 public void transformsOutput() {
   _outputMock.setAppendInputToOutputWhenTransforming();
   _gameStep.onInput("TestInput");
   assertEquals("TestOutput TestInput", _textCommandHandler.getLastOutput());
 }