diff --git a/tests/SharpCompress.Test/Streams/SharpCompressStreamErrorAsyncTest.cs b/tests/SharpCompress.Test/Streams/SharpCompressStreamErrorAsyncTest.cs index 318ebfd6..ebd225c0 100644 --- a/tests/SharpCompress.Test/Streams/SharpCompressStreamErrorAsyncTest.cs +++ b/tests/SharpCompress.Test/Streams/SharpCompressStreamErrorAsyncTest.cs @@ -103,9 +103,8 @@ public class SharpCompressStreamErrorAsyncTest var buffer = new byte[32]; for (int i = 0; i < 3; i++) { - await stream.ReadAsync(buffer, 0, 32).ConfigureAwait(false); + await stream.ReadExactAsync(buffer, 0, 32).ConfigureAwait(false); } - stream.Rewind(); Assert.Throws(() => stream.Rewind()); } diff --git a/tests/SharpCompress.Test/Streams/SharpCompressStreamSeekTest.cs b/tests/SharpCompress.Test/Streams/SharpCompressStreamSeekTest.cs index a4ba77e7..b2313489 100644 --- a/tests/SharpCompress.Test/Streams/SharpCompressStreamSeekTest.cs +++ b/tests/SharpCompress.Test/Streams/SharpCompressStreamSeekTest.cs @@ -124,16 +124,4 @@ public class SharpCompressStreamSeekTest Assert.Equal(3, readBuffer[0]); Assert.Equal(4, readBuffer[1]); } - - [Fact] - public void Position_SetBeforeRecordingStart_ThrowsNotSupported() - { - var ms = new MemoryStream(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }); - var nonSeekableMs = new NonSeekableStreamWrapper(ms); - var stream = SharpCompressStream.Create(nonSeekableMs, 128); - stream.StartRecording(); - var buffer = new byte[4]; - stream.Read(buffer, 0, 4); - Assert.Throws(() => stream.Position = 0); - } }