public void TestTakeItem() { inventory = new Inventory(); inventory.Put(AncientCoin); inventory.Take(AncientCoin.FirstId); Assert.IsFalse(inventory.HasItem(AncientCoin.FirstId), "Returns the item, no longer in inventory"); }
public void TakeItem() { Assert.AreEqual(shovel, newInventory.Take("shovel")); Assert.IsFalse(newInventory.HasItem("shovel")); }
public GameObject Take(string id) { return(Inventory.Take(id)); }