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.

17 lines
379 B

  1. package de.fd.fh;
  2. import org.junit.jupiter.api.Test;
  3. import static org.hamcrest.MatcherAssert.assertThat;
  4. import static org.junit.jupiter.api.Assertions.*;
  5. class GameTest
  6. {
  7. @Test
  8. void newGameInitializationCorrectField()
  9. {
  10. Game g = new Game();
  11. g.initNewGame();
  12. assertEquals(Figure.fieldLength * Figure.fieldLength, g.mField.length);
  13. }
  14. }