|
|
@ -29,7 +29,8 @@ class FigureFarmerTest |
|
|
|
@ParameterizedTest |
|
|
|
// row (src), col (src), row (dst), col (dst) |
|
|
|
@CsvSource({ |
|
|
|
"6, 0, 7, 0" // a2 -> a1 |
|
|
|
"6, 0, 7, 0", // a2 -> a1 |
|
|
|
"4, 4, 5, 4" // e4 -> e3 |
|
|
|
}) |
|
|
|
void whiteFarmerInvalidDestinationDown(int srcRow, int srcCol, int dstRow, int dstCol) // statt nach "oben" wird nach "unten" gegangen |
|
|
|
{ |
|
|
@ -60,13 +61,4 @@ class FigureFarmerTest |
|
|
|
assertTrue(f.moveAllowed(src, dst, field)); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void whiteFarmerInvalidDestinationDownVar2() // Bauer (w) steht in der Mitte vom Feld und geht 1 nach unten |
|
|
|
{ |
|
|
|
int src = Figure.fieldLength * 4 + 4; |
|
|
|
int dst = Figure.fieldLength * 5 + 4; |
|
|
|
|
|
|
|
Figure f = new FigureFarmer(FigureFarmer.Color.White); |
|
|
|
assertFalse(f.moveAllowed(src, dst, field)); |
|
|
|
} |
|
|
|
} |