// 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(); } } }
// Imitate LibraryModel.MakeBloomPack() without the user interaction private void MakeTestBloomPack(string bloomPackName, bool forReaderTools) { _testLibraryModel.RunCompressDirectoryTest(bloomPackName, forReaderTools); }