Beispiel #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));
        }
Beispiel #2
0
        public async Task GivenASlurWithUserMention_WhenFlaming_UserIsMentioned()
        {
            await _slursCommands.Flame(_command);

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