Exemplo n.º 1
0
        public void message_for_cast_on_self()
        {
            var spell = new Spell.Model.Spell()
            {
                Name         = "Magic missile",
                ValidTargets = ValidTargets.TargetPlayerRoom | ValidTargets.TargetFightVictim
            };

            var room = new Room();

            _player.Status       = CharacterStatus.Status.Standing;
            _player.Gender       = "Male";
            _target.Id           = Guid.NewGuid();
            _player.Id           = _target.Id;
            _player.ConnectionId = _target.Id.ToString();
            _player.ClassName    = "Mage";
            _player.Attributes.Attribute[EffectLocation.Mana] = 500;

            _spell.ReciteSpellCharacter(_player, _target, spell, room);
            _writer.Verify(w => w.WriteLine(It.Is <string>(s => s == "You close your eyes and utter the words, 'Magic missile'."), _player.ConnectionId), Times.Once);
        }