mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-03-03 16:49:45 +01:00
44 lines
929 B
Java
44 lines
929 B
Java
package inf112.fiasko.roborally;
|
|
|
|
import static org.junit.Assert.assertFalse;
|
|
import static org.junit.Assert.assertTrue;
|
|
|
|
import inf112.fiasko.roborally.game.Game;
|
|
import inf112.fiasko.roborally.game.IDrawableGame;
|
|
import org.junit.Before;
|
|
import org.junit.Test;
|
|
|
|
public class GameTest {
|
|
private IDrawableGame game;
|
|
|
|
@Before
|
|
public void setUp() {
|
|
game = new Game();
|
|
}
|
|
|
|
@Test
|
|
public void gameWidthPositiveTest() {
|
|
assertTrue(game.getWidth() > 0);
|
|
}
|
|
|
|
@Test
|
|
public void gameWidthMaximumFullHDTest() {
|
|
assertTrue(game.getWidth() <= 1920);
|
|
}
|
|
|
|
@Test
|
|
public void gameHeightPositiveTest() {
|
|
assertTrue(game.getWidth() > 0);
|
|
}
|
|
|
|
@Test
|
|
public void gameHeightMaximumFullHDTest() {
|
|
assertTrue(game.getWidth() <= 1080);
|
|
}
|
|
|
|
@Test
|
|
public void getObjectsToRenderTest() {
|
|
assertFalse(game.objectsToRender().isEmpty());
|
|
}
|
|
}
|