|
@ -173,7 +173,7 @@ class LogicTest { |
|
|
@MethodSource("boardSizeParameters") |
|
|
@MethodSource("boardSizeParameters") |
|
|
void getBoardSize(String testName, int size) { |
|
|
void getBoardSize(String testName, int size) { |
|
|
int expectedResult = size; |
|
|
int expectedResult = size; |
|
|
int realResult = testObj.getBoardSize(); |
|
|
|
|
|
|
|
|
int realResult = new Logic(size).getBoardSize(); |
|
|
|
|
|
|
|
|
assertEquals(expectedResult, realResult); |
|
|
assertEquals(expectedResult, realResult); |
|
|
} |
|
|
} |
|
@ -269,7 +269,8 @@ class LogicTest { |
|
|
|
|
|
|
|
|
private static Stream<Arguments> boardSizeParameters() { |
|
|
private static Stream<Arguments> boardSizeParameters() { |
|
|
return Stream.of( |
|
|
return Stream.of( |
|
|
Arguments.of("board with size 0", 0) |
|
|
|
|
|
|
|
|
Arguments.of("board with size 0", 0), |
|
|
|
|
|
Arguments.of("board with size 6", 6) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|