public void LTChatDecodeTest()
        {
            LTChat m = new LTChat(LTChat.Support.MessageId, "This Is My Message");

            byte[] data = m.Encode();
            LTChat decoded = (LTChat)PeerMessage.DecodeMessage(data, 0, data.Length, rig.Manager);
        
            Assert.AreEqual(m.Message, decoded.Message, "#1");
        }
        public void LTChatDecodeTest()
        {
            var m = new LTChat(LTChat.Support.MessageId, "This Is My Message");

            var data = m.Encode();
            var decoded = (LTChat) PeerMessage.DecodeMessage(data, 0, data.Length, rig.Manager);

            Assert.Equal(m.Message, decoded.Message);
        }
Example #3
0
        protected virtual void HandleLtChat(PeerId id, LTChat message)
        {

        }