Esempio n. 1
0
        public void ShouldSetColorFromColorSelector()
        {
            var args = new OnMessageSentArgs()
            {
                SentMessage = SentMessageBuilder
                              .Create()
                              .WithMessage(Message)
                              .Build()
            };

            Sut.TwitchClient_OnMessageSent(null, args);

            MockedTwitchClientManager
            .Verify(x => x.SpoolMessage(PrimaryChannelName, $".color {Color1}", Priority.Medium), Times.Once());
        }
Esempio n. 2
0
        public void ShouldIgnoreCommands()
        {
            var args = new OnMessageSentArgs()
            {
                SentMessage = SentMessageBuilder
                              .Create()
                              .WithMessage('.' + Message)
                              .Build()
            };

            Sut.TwitchClient_OnMessageSent(null, args);

            MockedTwitchClientManager
            .Verify(x => x.SpoolMessage(PrimaryChannelName, It.IsAny <String>(), Priority.Medium), Times.Never());
        }