public void CanReturnASpellsLevelFromTheName() { var spellList = new SpellList(); spellList.Add(3, "Fireball"); Assert.Equal(3, spellList.GetSpellLevel("Fireball")); }
public void LearnSpell(string spellName) { var spellLevel = SpellList.GetSpellLevel(spellName); LearnSpell(spellLevel, spellName); }
public void IfSpellIsNotFoundThrowException() { var spellList = new SpellList(); Assert.Throws(typeof(SpellNotFoundException), () => spellList.GetSpellLevel("Super Awesome Spell")); }