Esempio n. 1
0
        public void  FighterTakesCorrectDamage_ElementalWeakness([Values(MagicType.Fire, MagicType.Ice, MagicType.Earth)] MagicType type)
        {
            _enemy.SetHealth(100);
            _enemy.SetElementalWeakness(type);
            _enemy.MagicalDamage(10, type);

            //The current health will be 90 if the resistance has no impact on damage done
            Assert.AreEqual(80, _enemy.CurrentHealth);
        }