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); } }
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)); }
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); } }
public OldUnitDiffReporter(LaunchArgs defaultLauncher) { AddDiffReporter("*", defaultLauncher); }
public static void LaunchAsync(LaunchArgs launchArgs) { Task.Factory.StartNew(() => Launch(launchArgs)); }
/// <param name = "extensionWithDot"> Use * for default</param> public void AddDiffReporter(string extensionWithDot, LaunchArgs fileParameters) { types[extensionWithDot] = fileParameters; }
public void Launch(LaunchArgs launchArgs) { Process.Start(launchArgs.Program, launchArgs.Arguments); }
public DiffReporter(LaunchArgs defaultLauncher) { AddDiffReporter("*", defaultLauncher); }
public static void LaunchAsync(LaunchArgs launchArgs) { Launch(launchArgs); }