Ejemplo n.º 1
0
        public async Task GivenASlurWithUserMention_WhenFlaming_UserIsMentioned()
        {
            _userService.Setup(service => service.Mention(It.IsAny <User>())).Returns("<@otherUserid>");

            await _slursCommands.Flame(_command);

            _slack.Verify(slack => slack.BroadcastMessage(It.IsRegex("<@otherUserid>"), Channel));
        }
Ejemplo n.º 2
0
        public async Task GivenASlurWithUserMention_WhenFlaming_UserIsMentioned()
        {
            await _slursCommands.Flame(_command);

            _slack.Verify(slack => slack.BroadcastMessage(It.IsRegex("<@otherUserid>"), Channel));
        }