Esempio n. 1
0
        public void CannotAddGiantManaPotion()
        {
            PotionPack pp       = new PotionPack("Small potion sack", 2, 4);
            ManaPotion mana     = new ManaPotion("GIANT Mana Potion", 10);
            bool       expected = false;
            bool       actual   = pp.Add(mana);

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void CannotPutCrossbowInPotionPack()
        {
            PotionPack pp       = new PotionPack("Small potion sack", 2, 4);
            Crossbow   bow      = new Crossbow("Crossbow of the Hawk", 2, 10);
            bool       expected = false;
            bool       actual   = pp.Add(bow);

            Assert.AreEqual(expected, actual);
        }
Esempio n. 3
0
        public void CanAddPotion()
        {
            PotionPack pp       = new PotionPack("Small potion sack", 2, 4);
            ManaPotion mana     = new ManaPotion("Small Mana Potion", 1);
            bool       expected = true;
            bool       actual   = pp.Add(mana);

            Assert.AreEqual(expected, actual);
        }