Example #1
0
        public async void CastSpellTest()
        {
            // add new spell
            await controller.CastSpell(spell);

            // confirm spell was added to repo
            Spell s = spellRepo.Spell.First();

            Assert.Equal(spell.Title, s.Title);
            Assert.Equal(spell.Enchantment, s.Enchantment);
            Assert.Equal(spell.Intention, s.Intention);
            Assert.Equal(spell.MagicType, s.MagicType);
            Assert.Equal(spell.User.UserName, s.User.UserName);
            Assert.Equal(spell.Filename, s.Filename);
        }