Fiasko/src/test/java/inf112/fiasko/roborally/objects/RoboRallyGameTest.java
Steinar Aalstad Lillesund 382960d623 Byttet pakkenavn.
2020-04-14 15:54:09 +02:00

38 lines
776 B
Java

package inf112.fiasko.roborally.objects;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
public class RoboRallyGameTest {
private IDrawableGame game;
@Before
public void setUp() {
game = new RoboRallyGame(new ArrayList<>(),"Checkmate.txt",false, "Player1");
}
@Test
public void gameWidthIsPositive() {
assertTrue(game.getWidth() > 0);
}
@Test
public void gameWidthIsMaximumFullHD() {
assertTrue(game.getWidth() <= 1920);
}
@Test
public void gameHeightIsPositive() {
assertTrue(game.getHeight() > 0);
}
@Test
public void gameHeightIsMaximumFullHD() {
assertTrue(game.getHeight() <= 1080);
}
}