Exemplo n.º 1
0
        public void ReadBytesSuccessfully()
        {
            var result = new List <uint>(mResult.Length);
            var reader = new BitsReader(mInput);

            for (int i = 1; i < 33; i++)
            {
                result.Add(reader.ReadUInt32(i));
                result.Add(reader.ReadUInt32(i));
            }

            Assert.AreEqual(mResult, result.ToArray());
        }
Exemplo n.º 2
0
        public void ReadShouldThrow(byte[] input)
        {
            var reader = new BitsReader(input);

            for (int i = 0; i < 2; ++i)
            {
                reader.ReadUInt32(32);
            }
        }