mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-07-31 20:25:26 +02:00
Flytter RoboRallyGameTest til korrekt pakke
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user