public void IsFullReturnsTrueWithFullInventory() { Inventory inventory = new Inventory(); inventory.SetCapacity(1); Item item = new Item(); item.SetItemType(ItemType.BLUE_KEY); inventory.AddItem(item); bool isFull = inventory.IsFull(); Assert.IsTrue(isFull); }
public void IsEmptyReturnsFalseWithFullInventory() { Inventory inventory = new Inventory(); inventory.SetCapacity(1); Item item = new Item(); item.SetItemType(ItemType.BLUE_KEY); inventory.AddItem(item); bool isEmpty = inventory.IsEmpty(); Assert.IsFalse(isEmpty); }