Browse Source

moved whiteFarmerInvalidDestinationDownVar2 into whiteFarmerInvalidDestinationDown

feat-figureMovement
JD 4 years ago
parent
commit
db2724722a
  1. 12
      fh.fd.ci.client/src/test/java/de/fd/fh/FigureFarmerTest.java

12
fh.fd.ci.client/src/test/java/de/fd/fh/FigureFarmerTest.java

@ -29,7 +29,8 @@ class FigureFarmerTest
@ParameterizedTest @ParameterizedTest
// row (src), col (src), row (dst), col (dst) // row (src), col (src), row (dst), col (dst)
@CsvSource({ @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 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)); 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));
}
} }
Loading…
Cancel
Save