Beispiel #1
0
        public void Not_enough_mana()
        {
            _player.Level      = 45;
            _player.Attributes = new Attributes()
            {
                Attribute = new Dictionary <EffectLocation, int>
                {
                    { EffectLocation.Mana, 0 }
                }
            };

            _Spells.Cost.Table[Cost.Mana] = 100;

            var spell = new Spell.Model.Spell()
            {
                Name = "chill touch",
                Cost = new SkillCost()
                {
                    Table = new Dictionary <Cost, int>
                    {
                        { Cost.Mana, 100 }
                    }
                }
            };


            Assert.False(_spell.ManaCheck(spell, _player));
            _writer.Verify(w => w.WriteLine(It.Is <string>(s => s == "You don't have enough mana."), "mob"), Times.Once);
        }