mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-02-07 18:49:34 +01:00
Added a extra test to RobotTest
This commit is contained in:
parent
71562f1544
commit
a28c92e9b9
@ -12,4 +12,11 @@ public class RobotTest {
|
|||||||
Robot testRobotGetDamage = new Robot(6, robotPosition);
|
Robot testRobotGetDamage = new Robot(6, robotPosition);
|
||||||
assertEquals(0, testRobotGetDamage.getDamage());
|
assertEquals(0, testRobotGetDamage.getDamage());
|
||||||
}
|
}
|
||||||
|
@Test
|
||||||
|
public void testRobotSetDamage(){
|
||||||
|
Position robotPosition = new Position(3,6);
|
||||||
|
Robot testRobotSetDamage = new Robot(6, robotPosition);
|
||||||
|
testRobotSetDamage.setDamage(2);
|
||||||
|
assertEquals(2, testRobotSetDamage.getDamage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user