Esempio n. 1
0
        public void CanReturnASpellsLevelFromTheName()
        {
            var spellList = new SpellList();

            spellList.Add(3, "Fireball");
            Assert.Equal(3, spellList.GetSpellLevel("Fireball"));
        }
Esempio n. 2
0
        public void LearnSpell(string spellName)
        {
            var spellLevel = SpellList.GetSpellLevel(spellName);

            LearnSpell(spellLevel, spellName);
        }
Esempio n. 3
0
        public void IfSpellIsNotFoundThrowException()
        {
            var spellList = new SpellList();

            Assert.Throws(typeof(SpellNotFoundException), () => spellList.GetSpellLevel("Super Awesome Spell"));
        }