Example #1
0
 @Test
 public void skillEffectWorks() {
   player.useSkill(skill);
   assertEquals(monster.isStunned(), true);
 }
Example #2
0
 @Test
 public void skillDoesDamage() {
   player.useSkill(skill);
   assertEquals(monster.getHealth(), 500 - (1.0 - (1.666 * 5) / 100.0) * 100, 1.0);
 }