mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
1c1c9bfd35
@ -0,0 +1,27 @@
|
||||
package inf112.fiasko.roborally.objects;
|
||||
|
||||
import inf112.fiasko.roborally.element_properties.Direction;
|
||||
import inf112.fiasko.roborally.element_properties.Position;
|
||||
import inf112.fiasko.roborally.element_properties.TileType;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class BoardElementContainerTest {
|
||||
|
||||
@Test
|
||||
public void getObjectTest() {
|
||||
Position pos = new Position(1,2);
|
||||
Tile tile = new Tile(TileType.TILE, Direction.NORTH);
|
||||
BoardElementContainer<Tile> element = new BoardElementContainer<>(tile, pos);
|
||||
assertEquals(tile, element.getObject());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getPositionTest() {
|
||||
Position pos = new Position(1,2);
|
||||
Tile tile = new Tile(TileType.TILE, Direction.NORTH);
|
||||
BoardElementContainer<Tile> element = new BoardElementContainer<>(tile, pos);
|
||||
assertEquals(pos, element.getPosition());
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user