Inheritance: IEnvironmentAwareReporter
        public void Report(string approved, string received)
        {
            string temp = QuietReporter.GetCommandLineForApproval(approved, received);

            TOTAL.AppendLine(temp);
            ClipboardUtilities.CopyToClipboard(TOTAL.ToString());
        }
        public void Report(string approved, string received)
        {
            var temp = QuietReporter.GetCommandLineForApproval(approved, received);

            TOTAL.AppendLine(temp);
            Clipboard.SetText(TOTAL.ToString());
        }
Example #3
0
        public void Report(string approved, string received)
        {
            QuietReporter.DisplayCommandLineApproval(approved, received);

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

            Process.Start(received);
        }
Example #4
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);
        }
        public void Report(string approved, string received)
        {
            var temp = QuietReporter.GetCommandLineForApproval(approved, received);

            lock (builder)
            {
                builder.AppendLine(temp);
                ClipboardService.SetText(builder.ToString());
            }
        }
Example #6
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 #7
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 #8
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);
 }
        public void Report(string approved, string received)
        {
            var text = QuietReporter.GetCommandLineForApproval(approved, received);

            ClipboardService.SetText(text);
        }
        public void Report(string approved, string received)
        {
            string text = QuietReporter.GetCommandLineForApproval(approved, received);

            ClipboardUtilities.CopyToClipboard(text);
        }