public void InnerStreamIsNotFlushedOnDispose() { var stream = FlushReportingStream.GetThrowingStream(); var nonDisposableStream = new NonDisposableStream(stream); // Act & Assert nonDisposableStream.Dispose(); }
public void InnerStreamIsOpenOnDispose() { // Arrange var innerStream = new MemoryStream(); var nonDisposableStream = new NonDisposableStream(innerStream); // Act nonDisposableStream.Dispose(); // Assert Assert.True(innerStream.CanRead); }