예제 #1
0
        public void OutgoingMessage_Reset()
        {
            byte[]          data            = new byte[256];
            OutgoingMessage outgoingMessage = new OutgoingMessage(data);

            outgoingMessage.Write(1234.555f);
            outgoingMessage.Write(1200);
            Assert.AreEqual(8, outgoingMessage.Length);
            outgoingMessage.Reset();
            Assert.AreEqual(0, outgoingMessage.Length);
        }