public void WriteRead_First1000()
        {
            for (long input = -500; input < 500; input++)
            {
                var encoded = EliasDeltaSignedWriter.WriteOneDefault(input);
                var output  = EliasDeltaSignedReader.ReadOneDefault(encoded);

                Assert.AreEqual(input, output);
            }
        }
        public void WriteRead_First1000_Appending()
        {
            long min = -500;
            long max = 500;

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