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