Candor.ExecutionResults.Combine C# (CSharp) Method

Combine() public method

Combines the results of another ExecutionResults into this instance.
public Combine ( ExecutionResults results ) : void
results ExecutionResults The results to be combined.
return void
        public void Combine( ExecutionResults results )
        {
            if (results == null)
                throw new ArgumentNullException("results");
            if (results == this)
                return;

            for (int i = 0; i < results.messages_.Count; i++)
            {
                ExecutionStep step = results.messages_[i];
                this.messages_.Add(step);
                if (step.StepType == ExecutionStepType.Error)
                    this.success_ = false;
            }
        }