|
@ -150,6 +150,16 @@ class LogicTest { |
|
|
assertEquals(expectedResult, testObj.player1Score); |
|
|
assertEquals(expectedResult, testObj.player1Score); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void getPlayer1ScoreTest() { |
|
|
|
|
|
int expectedResult = 500; |
|
|
|
|
|
testObj.setPlayer1Score(expectedResult); |
|
|
|
|
|
|
|
|
|
|
|
int realResult = testObj.getPlayer1Score(); |
|
|
|
|
|
|
|
|
|
|
|
assertEquals(expectedResult, realResult); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private static Stream<Arguments> playfieldResults() { |
|
|
private static Stream<Arguments> playfieldResults() { |
|
|
int[][] playfield1 = {{0, 0, 0, 0, 0, 0}, |
|
|
int[][] playfield1 = {{0, 0, 0, 0, 0, 0}, |
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
{0, 0, 0, 0, 0, 0}, |
|
|