Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 protected override void ProcessFalseResult(CommandCall commandCall, global::Concordion.Api.IResultRecorder resultRecorder)
 {
     resultRecorder.Record(Result.Success);
     OnSuccessReported(commandCall.Element);
 }
Exemplo n.º 4
0
 protected override void ProcessTrueResult(CommandCall commandCall, global::Concordion.Api.IResultRecorder resultRecorder)
 {
     resultRecorder.Record(Result.Failure);
     OnFailureReported(commandCall.Element, commandCall.Expression, "== false");
 }
Exemplo n.º 5
0
 protected override void ProcessFalseResult(CommandCall commandCall, global::Concordion.Api.IResultRecorder resultRecorder)
 {
     resultRecorder.Success();
     AnnounceSuccess(commandCall.Element);
 }
Exemplo n.º 6
0
        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);
            }
        }