コード例 #1
0
        public void TestEquipmentSetReplaceItemInSet()
        {
            GearSet set = new GearSet(testSet);

            set.AddItem(replacementSet[1]);

            Assert.AreEqual("Ryumyakyu Hitai-ate of Healing", set.GetItemBySlot(EquipSlot.HEAD).Name);
            Assert.AreEqual(360, set.GetItemBySlot(EquipSlot.HEAD).Ilvl);
        }
コード例 #2
0
        public void TestEquipmentSetAddItem()
        {
            GearSet set = new GearSet();

            set.AddItem(replacementSet[1]);

            Assert.IsNotNull(set.GetItemBySlot(EquipSlot.HEAD));
            Assert.AreEqual("Ryumyakyu Hitai-ate of Healing", set.GetItemBySlot(EquipSlot.HEAD).Name);
        }
コード例 #3
0
        public void TestEquipmentSetRemoveItem()
        {
            GearSet set = new GearSet(testSet);

            set.RemoveItem(EquipSlot.HEAD);
            Assert.IsNull(set.GetItemBySlot(EquipSlot.HEAD));
        }
コード例 #4
0
        public void TestEquipmentSetGetBySlot()
        {
            GearSet set = new GearSet(testSet);

            GearItem item = set.GetItemBySlot(EquipSlot.NECKLACE);

            Assert.AreEqual(EquipSlot.NECKLACE, item.Slot);
        }