|
|
@ -29,5 +29,18 @@ public class PlayerTest { |
|
|
|
assertThat(calculatedResult).describedAs("Player Name").isEqualTo(expectedResult); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void checkStartPositionOfFigures() { |
|
|
|
int expectedResult = -1; |
|
|
|
int calculatedResult = p.figures[0].position; |
|
|
|
for(int i = 0; i < 4; i++) { |
|
|
|
calculatedResult = p.figures[i].position; |
|
|
|
if(expectedResult != calculatedResult) { |
|
|
|
calculatedResult = 1; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
assertThat(calculatedResult).describedAs("Starting postion of Figures").isEqualTo(expectedResult); |
|
|
|
} |
|
|
|
|
|
|
|
} |