More test fixes and fmt

This commit is contained in:
Adam Hathcock
2025-11-27 12:14:35 +00:00
parent af7e270b2d
commit 8d2463f575
3 changed files with 5 additions and 3 deletions

View File

@@ -17,4 +17,3 @@ public abstract class FilePart
public virtual bool SupportsMultiThreading => false;
}

View File

@@ -47,5 +47,4 @@ internal class SeekableZipFilePart : ZipFilePart
}
public override bool SupportsMultiThreading => BaseStream is SourceStream ss && ss.IsFileMode;
}

View File

@@ -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 }