Exemple #1
0
 public void TestEmptyTargetImage_Compress()
 {
     Assert.Throws <DirectoryNotFoundException>(() =>
     {
         m_testerCompress.Run(new string[] { }, Tester.MapOpenPath("testimg.bmp"), Tester.Testcase);
     });
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 public void TestEmptyTargetImage_Decompress()
 {
     m_testerDecompress.Run(new string[] { }, Path.Combine(Tester.Testcase, "3D.JPG"), Tester.Testcase);
 }
Exemple #5
0
 public void TestEmptyTargetImage_Compress()
 {
     m_testerCompress.Run(new string[] { }, Path.Combine(Tester.Testcase, "testimg.bmp"), Tester.Testcase);
 }