public void Step(string keyword, StepKeyword stepKeyword, ScenarioBlock scenarioBlock, string text, GherkinBufferSpan stepSpan)
        {
            var position = GetFilePosition(stepSpan.StartPosition);

            stepBuilder    = new StepBuilder(keyword, stepKeyword, text, position, scenarioBlock);
            tableProcessor = stepBuilder;

            if (stepProcessor == null)
            {
                throw new GherkinSemanticErrorException(
                          "Steps can only be specified for scenarios or scenario outlines.", position);
            }

            stepProcessor.ProcessStep(stepBuilder);
        }
 public void ProcessStep(StepBuilder step)
 {
     steps.Add(step);
 }
Пример #3
0
 public void ProcessStep(StepBuilder step)
 {
     steps.Add(step);
 }
Пример #4
0
 public void step(string keyword, string text, int line)
 {
     stepBuilder = new StepBuilder(keyword, text, new FilePosition(line), i18n);
     tableProcessor = stepBuilder;
     stepProcessor.ProcessStep(stepBuilder);
 }
Пример #5
0
        public void Step(string keyword, StepKeyword stepKeyword, ScenarioBlock scenarioBlock, string text, GherkinBufferSpan stepSpan)
        {
            var position = GetFilePosition(stepSpan.StartPosition);
            stepBuilder = new StepBuilder(keyword, stepKeyword, text, position, scenarioBlock);
            tableProcessor = stepBuilder;

            if (stepProcessor == null)
                throw new GherkinSemanticErrorException(
                    "Steps can only be specified for scenarios or scenario outlines.", position);

            stepProcessor.ProcessStep(stepBuilder);
        }