Пример #1
0
        public void TestEquipmentSetRemoveItem()
        {
            GearSet set = new GearSet(testSet);

            set.RemoveItem(EquipSlot.HEAD);
            Assert.IsNull(set.GetItemBySlot(EquipSlot.HEAD));
        }
Пример #2
0
        public void TestEquipmentSetRemoveItemSummary()
        {
            GearSet set = new GearSet(testSet);

            double mind     = set.StatSummary[CharacterStat.MIND];
            double vitality = set.StatSummary[CharacterStat.VITALITY];

            set.RemoveItem(EquipSlot.HEAD);

            Assert.AreEqual(mind - 198, set.StatSummary[CharacterStat.MIND]);
            Assert.AreEqual(vitality - 195, set.StatSummary[CharacterStat.VITALITY]);
        }