public void TestThatCharClassHasAThirdAbility() { var target = new CharClass("Warrior", null); Character bob = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior"); Effect blah = new Effect("health", 1, 1.0, true, bob); CharAbility[] targ2 = target.getCharacterAbilities(); CharAbility blahAb = new CharAbility("Blah", blah, "attack", 1, bob); Assert.AreEqual(targ2[2].getAbilityName(), blahAb.getAbilityName()); }
public void TestThatCharClassInitializes() { var target = new CharClass("Wizard", null); Assert.IsNotNull(target); }
public void TestThatCharClassHasClassNameWhenNotValid() { var target = new CharClass("Wizard", null); Assert.AreEqual(target.getClassName(), "Battle Mage"); }
public void TestThatCharClassHasACorrectClassNameWhenWarrior() { var target = new CharClass("Warrior", null); Assert.AreEqual(target.getClassName(), "Warrior"); }
public void TestThatCharClassHasACorrectClassNameWhenMage() { var target = new CharClass("Mage", null); Assert.AreEqual(target.getClassName(), "Mage"); }