ApprovalTests.Reporters.ExecutableQueryFailure.Report C# (CSharp) Method

Report() public method

public Report ( string approved, string received ) : void
approved string
received string
return void
        public void Report(string approved, string received)
        {
            this.reporter.Report(approved, received);

            var receivedResult = this.ExecuteQuery(received);
            var approvedResult = this.ExecuteQuery(approved);

            if (string.IsNullOrEmpty(approvedResult.Result) && string.IsNullOrEmpty(receivedResult.Result))
            {
                return;
            }

            var r = RunQueryAndGetPath(received, receivedResult);
            var a = RunQueryAndGetPath(approved, approvedResult);
            this.reporter.Report(a, r);
        }