You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
441 B

  1. package de.fd.fh;
  2. import org.junit.jupiter.api.Test;
  3. import static org.junit.jupiter.api.Assertions.*;
  4. class FigureBishopTest
  5. {
  6. @Test
  7. void checkInvalidMovesBishopUpward()
  8. {
  9. Figure f = new FigureBishop();
  10. int src = Figure.fieldLength * 5 + 5;
  11. int dst = src - Figure.fieldLength;
  12. assertFalse(f.moveAllowed(src, dst,
  13. new Figure[Figure.fieldLength * Figure.fieldLength]));
  14. }
  15. }