예제 #1
0
        public void GetUInt_ByteAligned()
        {
            var testBlock = new BitBlock(new byte[] { 0xFF, 0xFF, 0xFF, 0xFF, 5, 0, 0, 0 });

            Assert.AreEqual(uint.MaxValue, testBlock.GetUInt(0, 0, 32));
            Assert.AreEqual((uint)5, testBlock.GetUInt(4, 0, 32));
        }