public void RunCompressDirectoryTest(ZipOutputStream zipStream, bool forReaderTools = false) { CompressDirectory(TestFolderPath, zipStream, GetDirNameOffset, forReaderTools); }
// Imitate LibraryModel.MakeBloomPack() without the user interaction private void MakeTestBloomPack(string bloomPackName, bool forReaderTools) { using (var fsOut = File.Create(bloomPackName)) { using (var zipStream = new ZipOutputStream(fsOut)) { zipStream.SetLevel(9); _testLibraryModel.RunCompressDirectoryTest(zipStream, forReaderTools); zipStream.IsStreamOwner = true; // makes the Close() also close the underlying stream zipStream.Close(); } } }