mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-04-21 11:06:24 +02:00
38 lines
776 B
Java
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);
|
|
}
|
|
}
|