DisplayCommandLineApproval() public static method

public static DisplayCommandLineApproval ( string approved, string received ) : void
approved string
received string
return void
Example #1
0
        public void Report(string approved, string received)
        {
            QuietReporter.DisplayCommandLineApproval(approved, received);

            var text = string.Format("notepad \"{0}\"", received);

            Process.Start(received);
        }
Example #2
0
        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);
        }
Example #3
0
 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));
     }
 }
Example #4
0
        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();
            }
        }
Example #5
0
 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);
 }