public void TestChannelerTalentAddedMechanism()
        {
            var channeler = new ChannelerTalent();

            playerThing.FindBehavior <TalentsBehavior>().AddTalent(channeler);

            var behavior = playerThing.FindBehavior <TalentsBehavior>();

            Assert.IsTrue(behavior.ManagedTalents.Contains(channeler));
            Assert.IsNotNull(behavior.FindFirst <ChannelerTalent>().PlayerThing);

            behavior.RemoveTalent(channeler);
        }
        public void TestChannelerTalentAddedMechanism()
        {
            var channeler = new ChannelerTalent();

            this.playerThing.Behaviors.FindFirst<TalentsBehavior>().AddTalent(channeler);

            var behavior = this.playerThing.Behaviors.FindFirst<TalentsBehavior>();

            Verify.IsTrue(behavior.ManagedTalents.Contains(channeler));
            Verify.IsNotNull(behavior.FindFirst<ChannelerTalent>().PlayerThing);

            behavior.RemoveTalent(channeler);
        }
        public void TestChannelerTalentAutosetRule()
        {
            var channeler = new ChannelerTalent();

            var behavior       = this.playerThing.Behaviors.FindFirst <TalentsBehavior>();
            var damageStat     = this.playerThing.FindGameStat("Damage");
            int oldDamaveValue = damageStat.Value;

            behavior.AddTalent(channeler);

            Verify.AreNotEqual(oldDamaveValue, damageStat.Value);

            behavior.RemoveTalent(channeler);

            Verify.AreEqual(oldDamaveValue, damageStat.Value);
        }
        public void TestChannelerTalentAutosetRule()
        {
            var channeler = new ChannelerTalent();

            var behavior = this.playerThing.Behaviors.FindFirst<TalentsBehavior>();
            var damageStat = this.playerThing.FindGameStat("Damage");
            int oldDamaveValue = damageStat.Value;

            behavior.AddTalent(channeler);

            Verify.AreNotEqual(oldDamaveValue, damageStat.Value);

            behavior.RemoveTalent(channeler);

            Verify.AreEqual(oldDamaveValue, damageStat.Value);
        }