Exemplo n.º 1
0
 /** Test of the damageMonster method */
 @Test
 public void testDamageMonster() {
   assertTrue(monster.damageMonster() <= (monster.getBaseDamage() + monster.getDamageRange()));
 }
Exemplo n.º 2
0
 /** Test of the getDamageRange method */
 @Test
 public void testGetDamageRange() {
   assertEquals(monster.getDamageRange(), 3);
 }