public void WriteRead_First1000()
        {
            for (long input = -500; input < 500; input++)
            {
                var encoded = EliasOmegaSignedWriter.WriteOneDefault(input);
                var output  = EliasOmegaSignedReader.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 EliasOmegaSignedWriter(stream)) {
                    for (long i = min; i < max; i++)
                    {
                        writer.Write(i);
                    }
                }
                stream.Position = 0;
                using (var reader = new EliasOmegaSignedReader(stream)) {
                    for (long i = min; i < max; i++)
                    {
                        Assert.AreEqual(i, reader.Read());
                    }
                }
            }
        }