public void Read_15_15_15()
 {
     using (var stream = new MemoryStream(BitOperation.ParseToBytes("00101000 00010100 00001010 00000000"))) {
         using (var reader = new EliasDeltaUnsignedReader(stream)) {
             Assert.AreEqual((ulong)15, reader.Read());
             Assert.AreEqual((ulong)15, reader.Read());
             Assert.AreEqual((ulong)15, reader.Read());
         }
     }
 }
        public void WriteRead_First1000_Appending()
        {
            ulong min = 0;
            ulong max = 1000;

            using (var stream = new MemoryStream()) {
                using (var writer = new EliasDeltaUnsignedWriter(stream)) {
                    for (var i = min; i < max; i++)
                    {
                        writer.Write(i);
                    }
                }
                stream.Position = 0;
                using (var reader = new EliasDeltaUnsignedReader(stream)) {
                    for (var i = min; i < max; i++)
                    {
                        Assert.AreEqual(i, reader.Read());
                    }
                }
            }
        }