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()); }
public void ReadShouldThrow(byte[] input) { var reader = new BitsReader(input); for (int i = 0; i < 2; ++i) { reader.ReadUInt64(64); } }