示例#1
0
        public void JoinMessageTokens()
        {
            var channel     = "#chan";
            var joinMessage = new JoinMessage(channel);

            Assert.Equal($"JOIN {channel}", joinMessage.ToString());
        }
示例#2
0
        public void JoinMessageWithKeyTokens()
        {
            var channel     = "#chan";
            var key         = "12345";
            var joinMessage = new JoinMessage(channel, key);

            Assert.Equal($"JOIN {channel} {key}", joinMessage.ToString());
        }