public void EnsureAllocatesSpan() { OutputWriter <PipeWriter> writer = OutputWriter.Create(Pipe.Writer); writer.Ensure(10); Assert.True(writer.Span.Length > 10); Assert.Equal(new byte[] { }, Read()); }
public void EnsureAllocatesSpan() { OutputWriter <PipeWriter> writer = OutputWriter.Create(Pipe.Writer); writer.Ensure(10); Assert.True(writer.Span.Length > 10); Assert.Equal(new byte[] { }, Read()); }