public void MakeShot_MalformedCoordinatesGiven_ReturnsErrorResult()
        {
            _interactionHandlerMock.Setup(handler => handler.MakeShot(It.IsAny <string>()))
            .Throws <MalformedCoordinateError>();

            var result = _sut.MakeShot("test");

            result.Outcome.Should().Be(GameActionOutcome.Error);
            result.Description.Should().Be("The coordinates are malformed");
        }
Example #2
0
        private void HandleShotInput()
        {
            var result = _gameFlow.MakeShot(_textBox.Text);

            _inputReactionCallbacks.HandleGameActionResult(result);
        }