public static DisplayCommandLineApproval ( string approved, string received ) : void | ||
approved | string | |
received | string | |
리턴 | void |
public void Report(string approved, string received) { QuietReporter.DisplayCommandLineApproval(approved, received); var text = string.Format("notepad \"{0}\"", received); Process.Start(received); }
public void AssertFileContents(string approved, string received) { string a = File.Exists(approved) ? File.ReadAllText(approved) : ""; string r = File.ReadAllText(received); QuietReporter.DisplayCommandLineApproval(approved, received); AssertEqual(a, r); }
public void Report(string approved, string received) { QuietReporter.DisplayCommandLineApproval(approved, received); if (!File.Exists(approved)) { new FileLauncherReporter().Report(approved, received); } else { Process.Start(DiffImageTool, string.Format(DiffImageToolArgs, approved, received)); } }
public static void AssertFileContents(string approved, string received, string assertClass) { var a = File.Exists(approved) ? File.ReadAllText(approved) : ""; var r = File.ReadAllText(received); QuietReporter.DisplayCommandLineApproval(approved, received); try { Type.GetType(assertClass).InvokeMember("AreEqual", BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Static, null, null, new[] { a, r }); } catch (TargetInvocationException e) { throw e.GetBaseException(); } }
public void Report(string approved, string received) { QuietReporter.DisplayCommandLineApproval(approved, received); Launch(GetLaunchArguments(approved, received)); }
public void Report(string approved, string received) { QuietReporter.DisplayCommandLineApproval(approved, received); Process.Start(received); }