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
aed590f7bf
@ -1,15 +1,23 @@
|
||||
package inf112.fiasko.roborally;
|
||||
|
||||
import inf112.fiasko.roborally.game.Position;
|
||||
import org.junit.Assert;
|
||||
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(){
|
||||
Position testXPosition = new Position(3,4);
|
||||
assertEquals(3,testXPosition.getXCoordinate());
|
||||
assertEquals(3,testPosition.getXCoordinate());
|
||||
}
|
||||
@Test
|
||||
public void TestGetYPosition(){
|
||||
assertEquals(4,testPosition.getYCoordinate());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user