|
@ -81,6 +81,14 @@ class GameLogicTest { |
|
|
assertEquals(expectedResult, realResult); |
|
|
assertEquals(expectedResult, realResult); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void getCurrentPlayerTest() { |
|
|
|
|
|
char expectedResult = game.getCurrentPlayer(); |
|
|
|
|
|
char realResult = 'x'; |
|
|
|
|
|
|
|
|
|
|
|
assertEquals(expectedResult, realResult); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ParameterizedTest(name = "[{index}] {0} -> {2} fields") |
|
|
@ParameterizedTest(name = "[{index}] {0} -> {2} fields") |
|
|
@MethodSource("testCasesForCountPlayfields") |
|
|
@MethodSource("testCasesForCountPlayfields") |
|
|
void fieldCountTest(String testName, int size, int expectedResult) { |
|
|
void fieldCountTest(String testName, int size, int expectedResult) { |
|
|