protected override void ProcessTrueResult(CommandCall commandCall, global::Concordion.Api.IResultRecorder resultRecorder) { resultRecorder.Failure("expected false but was true", commandCall.Element.ToXml()); string expected = commandCall.Element.Text; AnnounceFailure(commandCall.Element, expected, "== true"); }
public void Execute(CommandCall commandCall, global::Concordion.Api.IEvaluator evaluator, global::Concordion.Api.IResultRecorder resultRecorder) { CommandCallList childCommands = commandCall.Children; childCommands.SetUp(evaluator, resultRecorder); evaluator.Evaluate(commandCall.Expression); childCommands.Execute(evaluator, resultRecorder); m_ExecuteCommand.AnnounceExecuteCompleted(commandCall.Element); childCommands.Verify(evaluator, resultRecorder); }
protected override void ProcessFalseResult(CommandCall commandCall, global::Concordion.Api.IResultRecorder resultRecorder) { resultRecorder.Record(Result.Success); OnSuccessReported(commandCall.Element); }
protected override void ProcessTrueResult(CommandCall commandCall, global::Concordion.Api.IResultRecorder resultRecorder) { resultRecorder.Record(Result.Failure); OnFailureReported(commandCall.Element, commandCall.Expression, "== false"); }
protected override void ProcessFalseResult(CommandCall commandCall, global::Concordion.Api.IResultRecorder resultRecorder) { resultRecorder.Success(); AnnounceSuccess(commandCall.Element); }
public void Execute(CommandCall commandCall, global::Concordion.Api.IEvaluator evaluator, global::Concordion.Api.IResultRecorder resultRecorder) { TableSupport tableSupport = new TableSupport(commandCall); IList <Row> detailRows = tableSupport.GetDetailRows(); foreach (Row detailRow in detailRows) { if (detailRow.GetCells().Count != tableSupport.ColumnCount) { throw new Exception("The <table> 'execute' command only supports rows with an equal number of columns."); } commandCall.Element = detailRow.RowElement; tableSupport.CopyCommandCallsTo(detailRow); commandCall.Execute(evaluator, resultRecorder); } }