Exemple #1
0
        public void DoesNotCompile()
        {
            var a = new Tester { Test = 1 };
            var b = 1;

            //GenericTools.Swap(ref a, ref b);
            
        }
Exemple #2
0
        public void SwapObjects()
        {
            var a = new Tester { Test = 1 };
            var b = new Tester { Test = 2 };
            GenericTools.Swap(ref a, ref b);

            Assert.AreEqual(2, a.Test);
            Assert.AreEqual(1, b.Test);
        }
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);
        }