Example #1
0
 public DiffReporter()
 {
     var tortoise = new LaunchArgs(textDiffProgram, textDiffArguments);
     AddDiffReporter("*", tortoise);
     AddDiffReporter(".tif", new LaunchArgs(imageDiffTool, imageDiffArgs));
     AddDiffReporter(".tiff", new LaunchArgs(imageDiffTool, imageDiffArgs));
     AddDiffReporter(".png", new LaunchArgs(imageDiffTool, imageDiffArgs));
 }
Example #2
0
        public DiffReporter()
        {
            var tortoise = new LaunchArgs(textDiffProgram, textDiffArguments);

            AddDiffReporter("*", tortoise);
            AddDiffReporter(".tif", new LaunchArgs(imageDiffTool, imageDiffArgs));
            AddDiffReporter(".tiff", new LaunchArgs(imageDiffTool, imageDiffArgs));
            AddDiffReporter(".png", new LaunchArgs(imageDiffTool, imageDiffArgs));
        }
 public static void LaunchAsync(LaunchArgs launchArgs)
 {
     if (IsMsTest())
     {
         Launch(launchArgs, true);
     }
     else
     {
         Task.Factory.StartNew(() => Launch(launchArgs, false));
     }
 }
 public static void Launch(LaunchArgs launchArgs)
 {
     try
     {
         Process.Start(launchArgs.Program, launchArgs.Arguments);
     }
     catch (Win32Exception e)
     {
         throw new Exception($"Unable to launch: {launchArgs.Program} with arguments {launchArgs.Arguments}\nError Message: {e.Message}", e);
     }
 }
Example #5
0
        public OldUnitDiffReporter()
        {
            var filePathFinder = new FilePathFinder();
            imageDiffTool = filePathFinder.Find(imageDiffTool);
            textDiffProgram = filePathFinder.Find(textDiffProgram);

            var tortoise = new LaunchArgs(textDiffProgram, textDiffArguments);
            AddDiffReporter("*", tortoise);
            AddDiffReporter(".tif", new LaunchArgs(imageDiffTool, imageDiffArgs));
            AddDiffReporter(".tiff", new LaunchArgs(imageDiffTool, imageDiffArgs));
            AddDiffReporter(".png", new LaunchArgs(imageDiffTool, imageDiffArgs));
        }
Example #6
0
		public static void Launch(LaunchArgs launchArgs)
		{
			try
			{
				Process.Start(launchArgs.Program, launchArgs.Arguments);
			}
			catch (System.ComponentModel.Win32Exception e)
			{

				throw new Exception("Unable to launch: {0} with arguments {1}\nError Message: {2}".FormatWith(launchArgs.Program, launchArgs.Arguments, e.Message), e);
			}
		}
 public static void Launch(LaunchArgs launchArgs)
 {
     try
     {
         Process.Start(launchArgs.Program, launchArgs.Arguments);
     }
     catch (Win32Exception e)
     {
         throw new Exception(
                   "Unable to launch: {0} with arguments {1}\nError Message: {2}".FormatWith(launchArgs.Program, launchArgs.Arguments,
                                                                                             e.Message), e);
     }
 }
 private static void Launch(LaunchArgs launchArgs, bool waitForExit)
 {
     try
     {
         var process = Process.Start(launchArgs.Program, launchArgs.Arguments);
         if (waitForExit)
         {
             process.WaitForExit();
         }
     }
     catch (Win32Exception e)
     {
         throw new Exception($"Unable to launch: {launchArgs.Program} with arguments {launchArgs.Arguments}\nError Message: {e.Message}", e);
     }
 }
 private static void Launch(LaunchArgs launchArgs, bool waitForExit)
 {
     try
     {
         Process process = Process.Start(launchArgs.Program, launchArgs.Arguments);
         if (waitForExit)
         {
             process.WaitForExit();
         }
     }
     catch (Win32Exception e)
     {
         throw new Exception(
                   "Unable to launch: {0} with arguments {1}\nError Message: {2}".FormatWith(
                       launchArgs.Program,
                       launchArgs.Arguments,
                       e.Message),
                   e);
     }
 }
Example #10
0
 public OldUnitDiffReporter(LaunchArgs defaultLauncher)
 {
     AddDiffReporter("*", defaultLauncher);
 }
 public static void LaunchAsync(LaunchArgs launchArgs)
 {
     Task.Factory.StartNew(() => Launch(launchArgs));
 }
Example #12
0
 /// <param name = "extensionWithDot"> Use * for default</param>
 public void AddDiffReporter(string extensionWithDot, LaunchArgs fileParameters)
 {
     types[extensionWithDot] = fileParameters;
 }
Example #13
0
 public void Launch(LaunchArgs launchArgs)
 {
     Process.Start(launchArgs.Program, launchArgs.Arguments);
 }
Example #14
0
 /// <param name = "extensionWithDot"> Use * for default</param>
 public void AddDiffReporter(string extensionWithDot, LaunchArgs fileParameters)
 {
     types[extensionWithDot] = fileParameters;
 }
Example #15
0
 public DiffReporter(LaunchArgs defaultLauncher)
 {
     AddDiffReporter("*", defaultLauncher);
 }
Example #16
0
 public void Launch(LaunchArgs launchArgs)
 {
     Process.Start(launchArgs.Program, launchArgs.Arguments);
 }
		public static void LaunchAsync(LaunchArgs launchArgs)
		{
			Task.Factory.StartNew(() => Launch(launchArgs));
		}
 public static void LaunchAsync(LaunchArgs launchArgs)
 {
     if (IsMsTest())
     {
         Launch(launchArgs, true);
     }
     else
     {
         Task.Factory.StartNew(() => Launch(launchArgs, false));
     }
 }
 public static void LaunchAsync(LaunchArgs launchArgs)
 {
     Launch(launchArgs);
 }
 private static void Launch(LaunchArgs launchArgs, bool waitForExit)
 {
     try
     {
         Process process = Process.Start(launchArgs.Program, launchArgs.Arguments);
         if (waitForExit)
         {
             process.WaitForExit();
         }
     }
     catch (Win32Exception e)
     {
         throw new Exception(
             "Unable to launch: {0} with arguments {1}\nError Message: {2}".FormatWith(
                 launchArgs.Program,
                 launchArgs.Arguments,
                 e.Message),
             e);
     }
 }