Example #1
0
 void SetupStep(Step Step)
 {
     Steps[Step.Name] = Step;
 }
Example #2
0
 public OutlineStep(Step Core)
 {
     this.Core = Core;
     OutlineArgs = new List<string>(Core.Args);
 }
Example #3
0
        void SetupCurrentStepFrom(string DesiredStepPrototype)
        {
            Action Fail = () => { throw new Exception("Missing implementation for '" + DesiredStepPrototype + "'"); };

            var DesiredStep = new Step(DesiredStepPrototype);

            if (!Steps.ContainsKey(DesiredStep.Name)) Fail();

            var CorrespondingStep = Steps[DesiredStep.Name];

            if (DesiredStep.Args.Count != CorrespondingStep.Args.Count) Fail();

            CurrentStep = CorrespondingStep;
            CurrentStep.Args = DesiredStep.Args;
        }