File tree Expand file tree Collapse file tree
tests/SharpCompress.Test/Zip Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ public async ValueTask Archive_Iteration_DoesNotBreak_WhenFlushThrows_Deflate_As
315315 var path = Path . Combine ( TEST_ARCHIVES_PATH , "Zip.deflate.dd.zip" ) ;
316316 using var fileStream = File . OpenRead ( path ) ;
317317 using Stream stream = new ThrowOnFlushStream ( fileStream ) ;
318- await using var reader = ReaderFactory . OpenAsyncReader ( new AsyncOnlyStream ( stream ) ) ;
318+ using var reader = ReaderFactory . Open ( stream ) ;
319319
320320 var count = 0 ;
321321 while ( await reader . MoveToNextEntryAsync ( ) )
@@ -339,7 +339,7 @@ public async ValueTask Archive_Iteration_DoesNotBreak_WhenFlushThrows_LZMA_Async
339339 var path = Path . Combine ( TEST_ARCHIVES_PATH , "Zip.lzma.dd.zip" ) ;
340340 using var fileStream = File . OpenRead ( path ) ;
341341 using Stream stream = new ThrowOnFlushStream ( fileStream ) ;
342- await using var reader = ReaderFactory . OpenAsyncReader ( new AsyncOnlyStream ( stream ) ) ;
342+ using var reader = ReaderFactory . Open ( stream ) ;
343343
344344 var count = 0 ;
345345 while ( await reader . MoveToNextEntryAsync ( ) )
Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ public void Archive_Iteration_DoesNotBreak_WhenFlushThrows_Deflate()
492492 var path = Path . Combine ( TEST_ARCHIVES_PATH , "Zip.deflate.dd.zip" ) ;
493493 using var fileStream = File . OpenRead ( path ) ;
494494 using Stream stream = new ThrowOnFlushStream ( fileStream ) ;
495- using var reader = ReaderFactory . OpenReader ( stream ) ;
495+ using var reader = ReaderFactory . Open ( stream ) ;
496496
497497 var count = 0 ;
498498 while ( reader . MoveToNextEntry ( ) )
@@ -516,7 +516,7 @@ public void Archive_Iteration_DoesNotBreak_WhenFlushThrows_LZMA()
516516 var path = Path . Combine ( TEST_ARCHIVES_PATH , "Zip.lzma.dd.zip" ) ;
517517 using var fileStream = File . OpenRead ( path ) ;
518518 using Stream stream = new ThrowOnFlushStream ( fileStream ) ;
519- using var reader = ReaderFactory . OpenReader ( stream ) ;
519+ using var reader = ReaderFactory . Open ( stream ) ;
520520
521521 var count = 0 ;
522522 while ( reader . MoveToNextEntry ( ) )
You can’t perform that action at this time.
0 commit comments