示例#1
0
 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);
 }
示例#2
0
 public void Act(GameState gameState)
 {
     if (letterAsk.Ask(gameState))
     {
         gameState.Scores += scores;
         output.WriteLine($"Вы получаете {scores} очков");
     }
 }