コード例 #1
0
        public void DISCORD_CloneMessage_WithMessage_UsesNewMessage()
        {
            var discordMessage = new DiscordMessage("test", "#general", new User("calledude#1914", true), 1234);
            var clonedMessage  = discordMessage.CloneWithMessage("hello");

            Assert.Equal("hello", clonedMessage.Content);
            Assert.Equal(discordMessage.Channel, clonedMessage.Channel);
            Assert.Equal(discordMessage.Sender, clonedMessage.Sender);
            Assert.Equal(discordMessage.Destination, clonedMessage.Destination);
        }