diff --git a/tests/ImageSharp.Tests/TestUtilities/PausedMemoryStream.cs b/tests/ImageSharp.Tests/TestUtilities/PausedMemoryStream.cs index 96c3c5b63c..17d742e30f 100644 --- a/tests/ImageSharp.Tests/TestUtilities/PausedMemoryStream.cs +++ b/tests/ImageSharp.Tests/TestUtilities/PausedMemoryStream.cs @@ -87,7 +87,7 @@ public class PausedMemoryStream : MemoryStream, IPausedStream public override async Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) { // To make sure the copy operation is buffered and pausable, we should override MemoryStream's strategy - // with the default Stream copy logic based of System.IO.Stream: + // with the default Stream copy logic of System.IO.Stream: // https://github.com/dotnet/runtime/blob/4f53c2f7e62df44f07cf410df8a0d439f42a0a71/src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs#L104-L116 byte[] buffer = ArrayPool.Shared.Rent(bufferSize); try @@ -110,10 +110,6 @@ public class PausedMemoryStream : MemoryStream, IPausedStream public override bool CanWrite => base.CanWrite; - //public override long Length => this.Await(() => base.Length); - - //public override long Position { get => this.Await(() => base.Position); set => this.Await(() => base.Position = value); } - public override void Flush() => this.Await(() => base.Flush()); public override int Read(byte[] buffer, int offset, int count) => this.Await(() => base.Read(buffer, offset, count)); diff --git a/tests/ImageSharp.Tests/TestUtilities/PausedStream.cs b/tests/ImageSharp.Tests/TestUtilities/PausedStream.cs index 566cc79d5a..05f5f7a060 100644 --- a/tests/ImageSharp.Tests/TestUtilities/PausedStream.cs +++ b/tests/ImageSharp.Tests/TestUtilities/PausedStream.cs @@ -89,8 +89,8 @@ public class PausedStream : Stream, IPausedStream public override async Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) { - // To make sure the copy operation is buffered and pausable, we should override innerStream's strategy - // with the default Stream copy logic based from System.IO.Stream: + // To make sure the copy operation is buffered and pausable, we should override MemoryStream's strategy + // with the default Stream copy logic of System.IO.Stream: // https://github.com/dotnet/runtime/blob/4f53c2f7e62df44f07cf410df8a0d439f42a0a71/src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs#L104-L116 byte[] buffer = ArrayPool.Shared.Rent(bufferSize); try