예제 #1
0
        public void CannotAddBigItem()
        {
            Satchel bag = new Satchel();
            BattleAxe axe = new BattleAxe();

            bag.AddItem(axe);

            Assert.AreEqual(0, bag.ItemCount);
        }
        public void CanNotHoldInPouch()
        {
            ReagentPouch bag = new ReagentPouch();
            Mushroom shroom = new Mushroom();
            BattleAxe axe = new BattleAxe();

            bag.AddItem(shroom);
            bag.AddItem(axe);

            Assert.AreEqual(1, bag.ItemCount);

            bag.DisplayContents();
        }
예제 #3
0
        public void PutItemsInBackPackTest()
        {
            Backpack bag = new Backpack();
            Mushroom shroom = new Mushroom();
            Cloth cloth = new Cloth();
            BattleAxe axe = new BattleAxe();

            bag.AddItem(shroom);
            bag.AddItem(cloth);
            bag.AddItem(axe);

            Assert.AreEqual(3, bag.ItemCount);

            bag.DisplayContents();
        }