Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void robotTakesDamageTest(){
- Robot robot = new Robot(0, 0);
- int oldHP = robot.getCurrentHP();
- robot.takeDamage(2);
- int newHP = robot.getCurrentHP();
- assertTrue(oldHP > newHP);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement