public void DoesNotCompile() { var a = new Tester { Test = 1 }; var b = 1; //GenericTools.Swap(ref a, ref b); }
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); }
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); }