Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
 public void TakeItem()
 {
     Assert.AreEqual(shovel, newInventory.Take("shovel"));
     Assert.IsFalse(newInventory.HasItem("shovel"));
 }
 public GameObject Take(string id)
 {
     return(Inventory.Take(id));
 }