public void TestThatCharAbilityHasCorrectEffect() { Character bob = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior"); Effect blah = new Effect("blah", 1, 0.0, true, bob); var target = new CharAbility("Fire", blah, "spell",1, bob); Assert.AreEqual(target.getAbilityEffect(), blah); }
public void TestThatCharAbilityHasEmptyAbilityEffects() { Character bob = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior"); var target = new CharAbility("Fire", null, "spell",50, bob); Assert.IsNull(target.getAbilityEffect()); }