示例#1
0
        public void RecklessnessSpell_ShouldGenerateRage_WhenCasted()
        {
            IWarriorHero hero   = ClassFactory.CreateWarrior("test");
            double       amount = hero.Power.PowerCurr;

            hero.Cast(WarriorSpellFactory.CreateRecklessness());

            Assert.AreNotEqual(amount, hero.Power.PowerCurr);
        }
示例#2
0
        public void RecklessnessSpell_ShouldHealHero_WhenCasted()
        {
            IWarriorHero hero = ClassFactory.CreateWarrior("test");

            hero.HealthCurr = 1;
            double health = hero.HealthCurr;

            hero.Cast(WarriorSpellFactory.CreateRecklessness());

            Assert.AreNotEqual(health, hero.HealthCurr);
        }