public void MutableHouse()
        {
            object       objects      = new House();
            Invisibility invisibility = new Swinwarts_School_of_Magic.Invisibility();

            Assert.AreEqual(invisibility.Cast(objects), "House vanishes");
        }
        public void ChangenameInvisibility()
        {
            Spell testingspell3 = new Swinwarts_School_of_Magic.Invisibility("asdf");

            Assert.AreSame(testingspell3.Cast(), "Zipppp...where am I?");
            testingspell3.Name = "xyz";
            Assert.AreSame(testingspell3.Cast(), "pzzzzzzit");
        }
        public void MutableCat()
        {
            object       objects      = new Cat();
            Invisibility invisibility = new Swinwarts_School_of_Magic.Invisibility();

            Assert.AreEqual(invisibility.Cast(objects), "With a hiss... the cat vanishes");
            Assert.AreEqual(invisibility.Cast(objects), "pzzzzit");
        }
        public void InvisibilityChanceSpell()
        {
            Invisibility Invi = new Invisibility();
            Spell        s    = new Swinwarts_School_of_Magic.Invisibility("3. David's dashing disapperance");
            int          i    = 0;

            while (i < 5)
            {
//				Invi.SpellCast (s);
                i++;
//				Console.WriteLine ("Spell succeed="+s.SpellsucceededOrNot);
            }
        }
        public void TestFetchingSpells()
        {
            SpellBook mySpellBook = new SpellBook();

            Spell[] arrayofspell;
            arrayofspell     = new Spell[5];
            arrayofspell [0] = new Teleport("1. Mitch's mighty mover");
            arrayofspell [1] = new Heal("2. Paul's potent poultice");
            arrayofspell [2] = new Invisibility("3. David's dashing disapperance");
            arrayofspell [3] = new Teleport("4. Stan's stunning shifter");
            arrayofspell [4] = new Heal("5. Lachlan's lavish longevity");
            foreach (Spell array0to4 in arrayofspell)
            {
                mySpellBook.AddSpells(array0to4);
            }

            Assert.AreSame(mySpellBook [0], arrayofspell [0]);
            Assert.AreSame(mySpellBook [1], arrayofspell [1]);
            Assert.AreSame(mySpellBook [2], arrayofspell [2]);
            Assert.AreSame(mySpellBook [3], arrayofspell [3]);
            Assert.AreSame(mySpellBook [4], arrayofspell [4]);
        }
        public void Invisibility()
        {
            Spell testingspell_3 = new Invisibility("David's dashing disapperance");

            Assert.AreEqual(testingspell_3.Cast(), "Zipppp...where am I?");
        }