public void TestHeal()
        {
            Spell spls = new Heal("Paul's potent poultice");

            StringAssert.AreEqualIgnoringCase("Paul's potent poultice", spls.Name);
            Assert.AreEqual(spls.Kind, SpellKind.Heal);
        }
        public void TestHeals()
        {
            Heal spls = new Heal();

            Assert.AreEqual("and... nothing happened", spls.Result);

            spls.Cast(spls);

            Assert.AreEqual("Ahhh... you feel better", spls.Result);
        }
        public void TestFetch()
        {
            SpellBook book = new SpellBook();

            Spell s = new Heal();

            book.AddSpell(s);


            Assert.AreEqual(s, book[0]);
        }
        public static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            Spell[] spells = new Spell[5];
            spells [0] = new Teleport("Mitch's mighty mover");
            spells [1] = new Heal("Paul's potent poultice");
            spells [2] = new Invisibility("David's dashing disappearance");
            spells [3] = new Teleport("Stan's stunning shifter");
            spells [4] = new Heal("Lachlan's lavish longevity");

            CastAll(spells);
        }
        public void TestRemove()
        {
            SpellBook book = new SpellBook();
            Spell     s    = new Heal();

            book.AddSpell(s);
            Spell sp = new Invisibility("Magic pulse");

            book.AddSpell(sp);
            Assert.AreEqual(2, book.SpellCount);
            book.RemoveSpell(sp);
            Assert.AreEqual(1, book.SpellCount);
        }