Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        public void TestEquipmentSetRemoveItem()
        {
            GearSet set = new GearSet(testSet);

            set.RemoveItem(EquipSlot.HEAD);
            Assert.IsNull(set.GetItemBySlot(EquipSlot.HEAD));
        }
Exemplo n.º 4
0
        public void TestEquipmentSetGetBySlot()
        {
            GearSet set = new GearSet(testSet);

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

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