public void WriteEnumerable(ByteOrder order)
        {
            using (var stream = new MemoryStream(new byte[1024]))
                using (var reader = new EndianReader(stream, order))
                    using (var writer = new EndianWriter(stream, order))
                    {
                        var rand = GetRandom(100);
                        writer.WriteEnumerable(rand);

                        stream.Position = 0;
                        for (int i = 0; i < 100; i++)
                        {
                            Assert.AreEqual(rand[i], reader.ReadInt32());
                        }
                    }
        }