public static void PerformTest(string file, string[] args, string suffix, bool checkOutput) { Tester tester = new Tester(); string inputFile = Path.Combine(TestCase.Folder, Path.GetFileName(file)); string outputFile = TestCase.Folder + @"Output.Tiff\" + Path.GetFileName(file) + suffix + ".tif"; tester.Run(args, inputFile, outputFile, checkOutput); }
private void performTest(string[] args, string file, string pageSpecifier, string suffix) { Tester tester = new Tester(); string inputFile = Path.Combine(TestCase.Folder, Path.GetFileName(file)); inputFile += pageSpecifier; string outputFile = TestCase.Folder + @"Output.Tiff\" + Path.GetFileName(file) + suffix + ".tif"; tester.Run(args, inputFile, outputFile); }
public void test_page0and2ViaTwoInputImages() { Tester tester = new Tester(); string inputFile = Path.Combine(TestCase.Folder, Path.GetFileName("1.tif")); string inputFile1 = inputFile + ",0"; string inputFile2 = inputFile + ",2"; string outputFile = TestCase.Folder + @"Output.Tiff\" + Path.GetFileName("1.tif") + "_page0and2_via_two_input_images.tif"; tester.Run(new string[] { inputFile1 }, inputFile2, outputFile); }
public void test_CCITT_bounds() { string file = "CCITT-bounds.tif"; string[] args = new string[] { "-c", "none", }; string suffix = "_converted_none"; // produce uncompressed image Tester tester = new Tester(); string inputFile = Path.Combine(TestCase.Folder, Path.GetFileName(file)); string outputFile = TestCase.Folder + @"Output.Tiff\" + Path.GetFileName(file) + suffix + ".tif"; tester.Run(args, inputFile, outputFile, false); // recompress image and compare with sample suffix = "_converted_ccitt_g4"; args = new string[] { "-c", "g4", }; inputFile = outputFile; outputFile = TestCase.Folder + @"Output.Tiff\" + Path.GetFileName(file) + suffix + ".tif"; tester.Run(args, inputFile, outputFile); }