示例#1
0
        public void PeekBitsPastEnd()
        {
            _defaultTestPacket.SkipBits(80);

            int temp;
            var output = _defaultTestPacket.TryPeekBits(32, out temp);

            Assert.AreEqual(16, temp);
            Assert.AreEqual(0x504F, output);
            Assert.AreEqual(80, _defaultTestPacket.BitsRead);
            Assert.AreEqual(true, _defaultTestPacket.IsShort);
        }