private void _TestDriver(TestCompressionLevels test, string label, bool seekable, bool zero, int fileOutputOption) { int[] fileCounts = new int[] { 1, 2, _rnd.Next(14) + 13 }; for (int j = 0; j < fileCounts.Length; j++) { string dirToZip = String.Format("subdir{0}", j); string[] files = null; if (zero) { // zero length files Directory.CreateDirectory(dirToZip); files = new string[fileCounts[j]]; for (int i = 0; i < fileCounts[j]; i++) files[i] = TestUtilities.CreateUniqueFile("zerolength", dirToZip); } else files = TestUtilities.GenerateFilesFlat(dirToZip, fileCounts[j], 40000, 72000); for (int i = 0; i < crypto.Length; i++) { string format = String.Format("{0}.{1}.count.{2}.Encrypt.{3}.Seek.{4}.Compress.{5}.zip", label, (zero) ? "ZeroBytes" : "regular", fileCounts[j], crypto[i].ToString(), seekable ? "Oui" : "Non", "{0}"); test(files, crypto[i], seekable, i, format, fileOutputOption); } } }
private void _TestDriver(TestCompressionLevels test, string label, bool seekable, bool zero) { _TestDriver(test, label, seekable, zero, 0); }