Esempio n. 1
0
        public static FakeNPC FakeNPC()
        {
            var brain = Substitute.For <ABrain>();
            var npc   = new FakeNPC(brain);

            return(npc);
        }
        public void ApplyEffectOnTarget_50ConBuffOnL50NPC_51Constitution()
        {
            var caster = new FakeNPC();
            var target = new FakeNPC();

            target.Level = 50;
            var spell            = NewSpellWithValue(50);
            var spellLine        = NewBasecSpellLine();
            var constitutionBuff = new ConstitutionBuff(caster, spell, spellLine);

            constitutionBuff.ApplyEffectOnTarget(target, 1);

            var actual = target.GetModified(eProperty.Constitution);

            Assert.AreEqual(51, actual);
        }