示例#1
0
        public void TestEmptyPacketStreamSizeOne()
        {
            PacketStream stream = new PacketStream();

            stream.Push(new byte[] { 0x01 }, 1);

            Assert.AreEqual(1, stream.Size());
        }
示例#2
0
        public void TestEmptyPacketStreamSizeZero()
        {
            PacketStream stream = new PacketStream();

            Assert.AreEqual(0, stream.Size());
        }