Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }