public void TestEmptyTargetImage_Compress() { Assert.Throws <DirectoryNotFoundException>(() => { m_testerCompress.Run(new string[] { }, Tester.MapOpenPath("testimg.bmp"), Tester.Testcase); }); }
public static void PerformTest(string[] args, string file, string suffix, bool compression) { Tester tester = new Tester(compression); string inputFile = Path.Combine(Testcase, Path.GetFileName(file)); string ext; if (compression) ext = ".jpg"; else ext = ".bmp"; string outputFile = Testcase + @"Output\" + Path.GetFileNameWithoutExtension(file) + suffix + ext; tester.Run(args, inputFile, outputFile); }
public static void PerformTest(string[] args, string file, string suffix, bool compression) { Tester tester = new Tester(compression); string inputFile = Path.Combine(Testcase, Path.GetFileName(file)); string ext; if (compression) { ext = ".jpg"; } else { ext = ".bmp"; } string outputFile = Testcase + @"Output\" + Path.GetFileNameWithoutExtension(file) + suffix + ext; tester.Run(args, inputFile, outputFile); }
public void TestEmptyTargetImage_Decompress() { m_testerDecompress.Run(new string[] { }, Path.Combine(Tester.Testcase, "3D.JPG"), Tester.Testcase); }
public void TestEmptyTargetImage_Compress() { m_testerCompress.Run(new string[] { }, Path.Combine(Tester.Testcase, "testimg.bmp"), Tester.Testcase); }