public RoundBuilder Result(int?winner) { _gameState.NextRound(); _gameState.FinishRound(new RoundResult { Winner = winner }); return(this); }
public void NextRound_ThrowsExceptionsForInvalidGameState(MahjongGame game) { game.NextRound(); }
public int NextRound_UpdatesOyaCorrectly(MahjongGame game) { game.NextRound(); return(game.Rounds.Last().Oya); }
public int NextRound_AddsRoundCorrectly(MahjongGame game) { game.NextRound(); return(game.Rounds.Count); }