Flytter RoboRallyGameTest til korrekt pakke

This commit is contained in:
2020-03-02 19:03:45 +01:00
parent bdf60e82ce
commit 52046fea40

View File

@@ -0,0 +1,35 @@
package inf112.fiasko.roborally.objects;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class RoboRallyGameTest {
private IDrawableGame game;
@Before
public void setUp() {
game = new RoboRallyGame();
}
@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);
}
}