Exemplo n.º 1
0
 public void TestThatCharClassHasASecondAbility()
 {
     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[1].getAbilityName(), blahAb.getAbilityName());
 }
Exemplo n.º 2
0
 public void TestThatCharAbilityHasCorrectAbilityName()
 {
     Character bob = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior");
     var target = new CharAbility("Fire", null, "spell",50, bob);
     Assert.AreEqual(target.getAbilityName(),"Fire");
 }