|
|
@ -0,0 +1,25 @@ |
|
|
|
package solitaer; |
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
|
|
|
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
class GeberStackTest { |
|
|
|
|
|
|
|
@Test |
|
|
|
void testswapGeberWaste001() { |
|
|
|
WasteStack waste = new WasteStack(0, 0); |
|
|
|
GeberStack geber = new GeberStack(0, 0, waste); |
|
|
|
|
|
|
|
for (int i = 1; i < 14; i++) { |
|
|
|
waste.addCard(new Card(0, Symbol.Pik, false)); |
|
|
|
} |
|
|
|
|
|
|
|
int expectedResult = waste.stackSize(); |
|
|
|
|
|
|
|
geber.swapWasteGeber(); |
|
|
|
|
|
|
|
assertEquals(geber.stackSize(), expectedResult, "same Size"); |
|
|
|
} |
|
|
|
|
|
|
|
} |