Esempio n. 1
0
        public async Task TestSetDisplaynameSimpleName()
        {
            var    user           = MockUser("User", twitchDisplayName: "user");
            string newDisplayName = user.SimpleName.ToUpper();

            CommandResult result = await _userCommands.SetDisplayName(new CommandContext(MockMessage(user),
                                                                                         ImmutableList.Create(newDisplayName), _argsParser));

            Assert.AreEqual(
                "you don't have any special characters in your name " +
                "and can therefore still change it in your twitch settings", result.Response);
            _userRepoMock.VerifyNoOtherCalls();
        }