mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Tobias og Gabriel startet å teste Robot classen
This commit is contained in:
parent
9e764ecaf5
commit
71562f1544
15
src/test/java/inf112/fiasko/roborally/RobotTest.java
Normal file
15
src/test/java/inf112/fiasko/roborally/RobotTest.java
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package inf112.fiasko.roborally;
|
||||||
|
|
||||||
|
import inf112.fiasko.roborally.element_properties.Position;
|
||||||
|
import inf112.fiasko.roborally.element_properties.Robot;
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class RobotTest {
|
||||||
|
@Test
|
||||||
|
public void testRobotGetDamageOnInitializedRobot(){
|
||||||
|
Position robotPosition = new Position(3,6);
|
||||||
|
Robot testRobotGetDamage = new Robot(6, robotPosition);
|
||||||
|
assertEquals(0, testRobotGetDamage.getDamage());
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user