Beispiel #1
0
        public void PrivateMsg()
        {
            var request = new PrivateMsgRequest(MessageRequests.PrivateMsg);

            request.Parse();
            Assert.Equal(MessageType.ChannelMessage, request.Type);
            Assert.Null(request.NickName);
            Assert.Equal("#GSP!room!test", request.ChannelName);
        }
Beispiel #2
0
        public void ChannelMsgTest()
        {
            var session1       = SingleJoinTest("unispy1", "unispy1", "#GSP!room!test");
            var session2       = SingleJoinTest("unispy2", "unispy2", "#GSP!room!test");
            var privMsgReq     = new PrivateMsgRequest("PRIVMSG #GSP!room!test :hello this is a test.");
            var privMsgHandler = new PrivateMsgHandler(session1, privMsgReq);

            privMsgHandler.Handle();
        }