Regression test for drawing single cards before the initial meld
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@268 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
81ca3e174a
commit
21f866d2ea
1 changed files with 17 additions and 0 deletions
|
@ -154,6 +154,23 @@ public class RoundControlTest {
|
|||
assertEquals(0, roundState.getTable().getSize());
|
||||
assertEquals(14 + 6, hand.getSize());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void laidOutValidUnchanged() {
|
||||
roundControl.startRound();
|
||||
view.startTurnEvent.emit();
|
||||
|
||||
|
||||
IHand hand = roundState.getActivePlayer().getHand();
|
||||
|
||||
assertFalse(roundState.getActivePlayer().getLaidOut());
|
||||
|
||||
view.playerPanel.endTurnEvent.emit();
|
||||
assertFalse(roundState
|
||||
.getNthNextPlayer(roundState.getPlayerCount() - 1).getLaidOut());
|
||||
assertEquals(0, roundState.getTable().getSize());
|
||||
assertEquals(14 + 1, hand.getSize());
|
||||
}
|
||||
|
||||
/** Threshold=30 */
|
||||
@Test
|
||||
|
|
Reference in a new issue