|
|
@ -162,11 +162,19 @@ class LogicTest { |
|
|
|
|
|
|
|
@Test |
|
|
|
void createGameLogicTest() { |
|
|
|
int size = 6; |
|
|
|
Logic expectedResult = testObj; |
|
|
|
Logic realResult = new Logic(size); |
|
|
|
int size = 6; |
|
|
|
Logic expectedResult = testObj; |
|
|
|
Logic realResult = new Logic(size); |
|
|
|
|
|
|
|
assertEquals(expectedResult.getClass(), realResult.getClass()); |
|
|
|
assertEquals(expectedResult.getClass(), realResult.getClass()); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void getBoardSize() { |
|
|
|
int expectedResult = 6; |
|
|
|
int realResult = testObj.getBoardSize(); |
|
|
|
|
|
|
|
assertEquals(expectedResult, realResult); |
|
|
|
} |
|
|
|
|
|
|
|
private static Stream<Arguments> playfieldResults() { |
|
|
|