Example #1
0
        public void EnsureAllocatesSpan()
        {
            OutputWriter <PipeWriter> writer = OutputWriter.Create(Pipe.Writer);

            writer.Ensure(10);

            Assert.True(writer.Span.Length > 10);
            Assert.Equal(new byte[] { }, Read());
        }