mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-11-17 01:41:02 +00:00
More test fixes and fmt
This commit is contained in:
@@ -17,4 +17,3 @@ public abstract class FilePart
|
||||
|
||||
public virtual bool SupportsMultiThreading => false;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,5 +47,4 @@ internal class SeekableZipFilePart : ZipFilePart
|
||||
}
|
||||
|
||||
public override bool SupportsMultiThreading => BaseStream is SourceStream ss && ss.IsFileMode;
|
||||
|
||||
}
|
||||
|
||||
@@ -278,7 +278,11 @@ public class ArchiveTests : ReaderTests
|
||||
{
|
||||
foreach (var entry in archive.Entries.Where(entry => !entry.IsDirectory))
|
||||
{
|
||||
Assert.True(entry.SupportsMultiThreading);
|
||||
if (archiveFactory.KnownArchiveType == ArchiveType.Zip)
|
||||
{
|
||||
Assert.True(entry.SupportsMultiThreading);
|
||||
}
|
||||
|
||||
entry.WriteToDirectory(
|
||||
SCRATCH_FILES_PATH,
|
||||
new ExtractionOptions { ExtractFullPath = true, Overwrite = true }
|
||||
|
||||
Reference in New Issue
Block a user