public void MergeInventoriesTest() { playerInventory = new PlayerInventory(); Assert.AreEqual(0, playerInventory.ItemCount); BaseItem herb = ItemDatabase.GetItemByName("Herb"); simpleInventory = new SimpleInventory(new int[] { herb.Id }, new int[] { 10 }); playerInventory.AddInventory(simpleInventory); Assert.AreEqual(1, playerInventory.ItemCount); Assert.AreEqual(10, playerInventory.GetQuantity(herb.Id)); }
public void SelltoPlayer() { playerInventory.AddInventory(curItem); }