Ejemplo n.º 1
0
        public void CanAddReagent()
        {
            ReagentPouch bag    = new ReagentPouch();
            Mushroom     shroom = new Mushroom();

            bag.AddItem(shroom);

            Assert.AreEqual(1, bag.ItemCount);

            bag.DisplayContents();
        }
Ejemplo n.º 2
0
        public void CannotAddNonReagent()
        {
            ReagentPouch bag   = new ReagentPouch();
            Cloth        cloth = new Cloth();
            BattleAxe    axe   = new BattleAxe();

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

            Assert.AreEqual(1, bag.ItemCount);

            bag.DisplayContents();
        }