Ejemplo n.º 1
0
        public void Message_KeepaliveMessage()
        {
            Guid srcAddr = Guid.NewGuid();
            Guid dstAddr = Guid.NewGuid();

            IMessage msg =
                new KeepaliveMessage(srcAddr, dstAddr);

            Assert.AreEqual(srcAddr, new Guid(msg.GetSourceAddressBytes()));
            Assert.AreEqual(dstAddr, new Guid(msg.GetDestinationAddressBytes()));

            Assert.AreEqual("ping", msg.GetContentBytes().AsString());
        }