Exemplo n.º 1
0
 public void ReadingStreamWithoutAbortionWorks() {
     var length = 1024 * 1024;
     var content = new byte[length];
     using (var inputStream = new MemoryStream(content))
     using (var outputStream = new MemoryStream())
     using (var underTest = new AbortableStream(inputStream)) {
         underTest.CopyTo(outputStream);
         Assert.That(outputStream.Length, Is.EqualTo(length));
     }
 }