public void ShouldApplyPercentageHealth()
 {
     const int playerBonusHealthRegeneration = 1;
     var p = new Player();
     p.AddModifier(new HealthRegenerationPercentage(100));
     Assert.IsTrue(p.BonusHealthRegeneration == playerBonusHealthRegeneration);
 }
 public void ShouldApplyPercentageArmor()
 {
     var p = new Player();
     EquipmentHelper.EquipEquipment(p, new BlessedCardboard());
     p.AddModifier(new ArmorBonusPercentage(50));
     Assert.IsTrue(p.BonusArmor == 2);
 }
 public void ShouldApplyFlatHealth()
 {
     const int playerBonusHealthRegeneration = 10;
     var p = new Player();
     p.AddModifier(new HealthRegenerationAmount(10));
     Assert.IsTrue(p.BonusHealthRegeneration == playerBonusHealthRegeneration);
 }
 public void ShouldApplyPercentageHealth()
 {
     const int playerStartingHealth = 150;
     const int playerBonusHealth = 75;
     var p = new Player();
     p.AddModifier(new HealthBonusPercentage(50));
     Assert.IsTrue(p.BonusHealth == playerBonusHealth);
 }
 public void ShouldApplyPercentageMana()
 {
     var p = new Player();
     p.LevelUp();
     p.ChooseSkill(new PathOfTheWizard());
     p.GainMana(50);
     p.AddModifier(new ManaBonusPercentage(50));
     Assert.IsTrue(p.BonusMana == 100);
 }
 public void ShouldApplyFlatHealth()
 {
     var p = new Player();
     p.AddModifier(new HealthBonusAmount(10));
     Assert.IsTrue(p.BonusHealth == 10);
 }
 public void ShouldApplyFlatMana()
 {
     var p = new Player();
     p.AddModifier(new ManaBonusAmount(10));
     Assert.IsTrue(p.BonusMana == 10);
 }
 public void ShouldApplyFlatArmor()
 {
     var p = new Player();
     p.AddModifier(new ArmorBonusAmount(10));
     Assert.IsTrue(p.BonusArmor == 10);
 }
 public void ShouldApplyPercentageMagicDamage()
 {
     var p = new Player();
     p.AddModifier(new MagicDamagePercentage(50));
     Assert.IsTrue(p.MagicDamageBonusPercent == 50);
 }
 public void ShouldApplyMagicDamage()
 {
     var p = new Player();
     p.AddModifier(new MagicDamageAmount(10));
     Assert.IsTrue(p.MagicDamage == 10);
 }
 public void ShouldApplyPercentageBlock()
 {
     var p = new Player();
     p.AddModifier(new BlockPercentage(50));
     Assert.IsTrue(p.BonusBlockAmount == 50);
 }
 public void ShouldApplyPhysicalDamage()
 {
     var p = new Player();
     p.AddModifier(new PhysicalDamageAmount(10));
     Assert.IsTrue(p.PhysicalDamage == 10);
 }