Exemplo n.º 1
0
 public RoundBuilder Result(int?winner)
 {
     _gameState.NextRound();
     _gameState.FinishRound(new RoundResult {
         Winner = winner
     });
     return(this);
 }
Exemplo n.º 2
0
 public void NextRound_ThrowsExceptionsForInvalidGameState(MahjongGame game)
 {
     game.NextRound();
 }
Exemplo n.º 3
0
 public int NextRound_UpdatesOyaCorrectly(MahjongGame game)
 {
     game.NextRound();
     return(game.Rounds.Last().Oya);
 }
Exemplo n.º 4
0
 public int NextRound_AddsRoundCorrectly(MahjongGame game)
 {
     game.NextRound();
     return(game.Rounds.Count);
 }