public void TestMassiveAttackTalentAddedMechanism() { var massiveAttack = new MassiveAttackTalent(); playerThing.FindBehavior <TalentsBehavior>().AddTalent(massiveAttack); var behavior = playerThing.FindBehavior <TalentsBehavior>(); Assert.IsTrue(behavior.ManagedTalents.Contains(massiveAttack)); Assert.IsNotNull(behavior.FindFirst <MassiveAttackTalent>().PlayerThing); behavior.RemoveTalent(massiveAttack); }
public void TestMassiveAttackTalentAddedMechanism() { var massiveAttack = new MassiveAttackTalent(); this.playerThing.Behaviors.FindFirst<TalentsBehavior>().AddTalent(massiveAttack); var behavior = this.playerThing.Behaviors.FindFirst<TalentsBehavior>(); Verify.IsTrue(behavior.ManagedTalents.Contains(massiveAttack)); Verify.IsNotNull(behavior.FindFirst<MassiveAttackTalent>().PlayerThing); behavior.RemoveTalent(massiveAttack); }
public void TestMassiveAttackTalentAutosetRule() { var massiveAttack = new MassiveAttackTalent(); var behavior = this.playerThing.Behaviors.FindFirst <TalentsBehavior>(); var damageStat = this.playerThing.FindGameStat("Damage"); int oldDamaveValue = damageStat.Value; behavior.AddTalent(massiveAttack); Verify.AreNotEqual(oldDamaveValue, damageStat.Value); behavior.RemoveTalent(massiveAttack); Verify.AreEqual(oldDamaveValue, damageStat.Value); }
public void TestMassiveAttackTalentAutosetRule() { var massiveAttack = new MassiveAttackTalent(); var behavior = this.playerThing.Behaviors.FindFirst<TalentsBehavior>(); var damageStat = this.playerThing.FindGameStat("Damage"); int oldDamaveValue = damageStat.Value; behavior.AddTalent(massiveAttack); Verify.AreNotEqual(oldDamaveValue, damageStat.Value); behavior.RemoveTalent(massiveAttack); Verify.AreEqual(oldDamaveValue, damageStat.Value); }