Esempio n. 1
0
        public void SerializeTest()
        {
            PingPayload ping   = new PingPayload(1);
            FastStream  stream = new FastStream(8);

            ping.Serialize(stream);

            Assert.Equal(new byte[8] {
                1, 0, 0, 0, 0, 0, 0, 0
            }, stream.ToByteArray());
        }