Ejemplo n.º 1
0
        public void WritesBlocks(byte[] items, byte[] encoding)
        {
            var stream = new MemoryStream();

            using (stream)
            {
                Codec.WriteBlocks(items, (b, s) => s.WriteByte(b), stream);
            }

            Assert.Equal(encoding, stream.ToArray());
        }