From 0e59bf39f4bb77859416bad08c84bf8ff351b962 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 12:04:47 +0000 Subject: [PATCH] Add test for IArchive.WriteToDirectoryAsync Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com> --- .../SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs b/tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs index 01fe9ca8..d964ddc7 100644 --- a/tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs +++ b/tests/SharpCompress.Test/Zip/ZipArchiveAsyncTests.cs @@ -194,4 +194,18 @@ public class ZipArchiveAsyncTests : ArchiveTests } VerifyFiles(); } + + [Fact] + public async Task Zip_Deflate_Archive_WriteToDirectoryAsync() + { + using (Stream stream = File.OpenRead(Path.Combine(TEST_ARCHIVES_PATH, "Zip.deflate.zip"))) + using (var archive = ZipArchive.Open(stream)) + { + await archive.WriteToDirectoryAsync( + SCRATCH_FILES_PATH, + new ExtractionOptions { ExtractFullPath = true, Overwrite = true } + ); + } + VerifyFiles(); + } }