Ejemplo n.º 1
0
        public void ItemSkillRemoved()
        {
            var player = TestHelper.GetPlayer();
            var item   = this.CreateItemWithSkill();

            item.Durability = 1;
            player.Inventory.AddItem(0, item);
            var skillList = new SkillList(player);

            Assert.That(skillList.RemoveItemSkill(item.Definition.Skill.SkillID.ToUnsigned()), Is.True);
            Assert.That(skillList.ContainsSkill(ItemSkillId), Is.False);
        }