mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-04-21 11:06:24 +02:00
24 lines
555 B
Java
24 lines
555 B
Java
package inf112.fiasko.roborally;
|
|
|
|
import inf112.fiasko.roborally.element_properties.Position;
|
|
import org.junit.Before;
|
|
import org.junit.Test;
|
|
|
|
import static org.junit.Assert.assertEquals;
|
|
|
|
public class PositionTest {
|
|
private Position testPosition;
|
|
@Before
|
|
public void setUp() {
|
|
testPosition = new Position(3, 4);
|
|
}
|
|
@Test
|
|
public void TestGetXPosition(){
|
|
assertEquals(3,testPosition.getXCoordinate());
|
|
}
|
|
@Test
|
|
public void TestGetYPosition(){
|
|
assertEquals(4,testPosition.getYCoordinate());
|
|
}
|
|
}
|