2020-02-04 17:52:17 +01:00
|
|
|
package inf112.fiasko.roborally;
|
2020-01-31 14:29:22 +01:00
|
|
|
|
|
|
|
import static org.junit.Assert.assertFalse;
|
|
|
|
import static org.junit.Assert.assertTrue;
|
|
|
|
|
2020-02-04 17:52:17 +01:00
|
|
|
import inf112.fiasko.roborally.game.Game;
|
|
|
|
import inf112.fiasko.roborally.game.IDrawableGame;
|
2020-01-31 14:29:22 +01:00
|
|
|
import org.junit.Before;
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
public class GameTest {
|
2020-02-04 19:57:20 +01:00
|
|
|
private IDrawableGame game;
|
2020-01-31 14:29:22 +01:00
|
|
|
|
|
|
|
@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());
|
|
|
|
}
|
|
|
|
}
|