public void EquippableCharacterEquipTests() { var equipped = _equippableCharacter.Equip(_headItem, 1); Assert.IsNull(equipped.error); Assert.AreEqual(1, equipped.result.Length); Assert.AreEqual(1, equipped.result[0].equippedAmount); Assert.AreSame(_headItem, equipped.result[0].equippedItem); Assert.AreEqual(0, equipped.result[0].index); Assert.AreEqual(_headItem, _equipmentCollection[0]); Assert.AreEqual(1, _equipmentCollection.GetAmount(0)); }
public void EquipSwordsToCharacterTest() { var added = _equippableCharacter.Equip(_swordItem, 2); // CAN wear 2 swords Assert.AreEqual(Errors.ItemIsExceedingMaxStackSize, added.error); Assert.AreEqual(0, _swordItem.onEquippedCallCount); Assert.AreEqual(0, _swordItem.onUnEquippedCallCount); }