public void ScoreAction_AddScoreInState_IfLetterGuessedRight() { letterAsk.Ask(state).Returns(true); scoreAction.Act(state); letterAsk.Received().Ask(state); output.Received().WriteLine(Arg.Any <string>()); state.Scores.Should().Be(10); }
public void Act(GameState gameState) { if (letterAsk.Ask(gameState)) { gameState.Scores += scores; output.WriteLine($"Вы получаете {scores} очков"); } }