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

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

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

            for (int i = 0; i < 2; ++i)
            {
                reader.ReadUInt64(64);
            }
        }