private static void TestExtract(String zipFileName, String folderName)
        {
            String tempFolder = StreamHelpers.GetTmpPath(true);

            ZipFile.ExtractToDirectory(zipFileName, tempFolder);
            DirsEqual(tempFolder, folderName);
        }
        public static void ExtractToDirectoryTest()
        {
            using (ZipArchive archive = ZipFile.Open(zfile("normal.zip"), ZipArchiveMode.Read))
            {
                String tempFolder = StreamHelpers.GetTmpPath(false);
                archive.ExtractToDirectory(tempFolder);

                DirsEqual(tempFolder, zfolder("normal"));
            }

            using (ZipArchive archive = ZipFile.OpenRead(zfile("unicode.zip")))
            {
                String tempFolder = StreamHelpers.GetTmpPath(false);
                archive.ExtractToDirectory(tempFolder);

                DirsEqual(tempFolder, zfolder("unicode"));
            }
        }
        public static void ExtractToDirectoryTest()
        {
            using (ZipArchive archive = ZipFile.Open(zfile("normal.zip"), ZipArchiveMode.Read))
            {
                String tempFolder = StreamHelpers.GetTmpPath(false);
                archive.ExtractToDirectory(tempFolder);

                DirsEqual(tempFolder, zfolder("normal"));
            }

            if (Interop.IsWindows) // [ActiveIssue(846, PlatformID.AnyUnix)]
            {
                using (ZipArchive archive = ZipFile.OpenRead(zfile("unicode.zip")))
                {
                    String tempFolder = StreamHelpers.GetTmpPath(false);
                    archive.ExtractToDirectory(tempFolder);

                    DirsEqual(tempFolder, zfolder("unicode"));
                }
            }
        }