public GameState FinishRound_ResultsInCorrectGameState(MahjongGame game) { game.FinishRound(new RoundResult { Winner = 0 }); return(game.State); }
public RoundBuilder Result(int?winner) { _gameState.NextRound(); _gameState.FinishRound(new RoundResult { Winner = winner }); return(this); }
public GameState FinishRound_ThrowsExceptionsForInvalidGameState(MahjongGame game) { game.FinishRound(new RoundResult()); return(game.State); }