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()); }
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()); }