public void Should_ReturnSuccessfulResult_When_TheParametersAreSuitable(string boardSize, string listOfMines, string exitPoint, string turtleStartingPoint, string movements, string result) { var input = new StringBuilder(); input.AppendLine(boardSize); input.AppendLine(listOfMines); input.AppendLine(exitPoint); input.AppendLine(turtleStartingPoint); input.Append(movements); var commands = _commandParserService.Parse(input.ToString()); _invoker.SetCommands(commands); _invoker.InvokeCommands(); var commandResult = _invoker.GetResult(); Assert.Equal(result, commandResult); }