Exemplo n.º 1
0
        public void Should_ReadInt12()
        {
            var bytes  = new byte[] { 59, 6 };
            var stream = new BitStream(bytes);
            var reader = new BitStreamReader(stream);
            var val    = reader.ReadInt12();

            Assert.AreEqual(Int12.ByteSize, stream.Length);
            Assert.AreEqual(1595, val);
        }