private void CaptureAndStoreRemainingElements() { if (this.isInExample && this.exampleBuilder != null) { this.scenarioOutlineBuilder.AddExample(this.exampleBuilder.GetResult()); this.exampleBuilder = null; } if (this.featureElementState.IsBackgroundActive) { this.backgroundBuilder.AddStep(this.stepBuilder.GetResult()); this.theFeature.AddBackground(this.backgroundBuilder.GetResult()); } else if (this.featureElementState.IsScenarioActive) { if (this.stepBuilder != null) { this.scenarioBuilder.AddStep(this.stepBuilder.GetResult()); } this.theFeature.AddFeatureElement(this.scenarioBuilder.GetResult()); } else if (this.featureElementState.IsScenarioOutlineActive) { if (this.stepBuilder != null) { this.scenarioOutlineBuilder.AddStep(this.stepBuilder.GetResult()); } this.theFeature.AddFeatureElement(this.scenarioOutlineBuilder.GetResult()); } this.stepBuilder = null; this.scenarioBuilder = null; this.scenarioOutlineBuilder = null; this.backgroundBuilder = null; }
public void step(string keyword, string name, int line) { if (this.stepBuilder != null) { this.AddStepToElement(this.stepBuilder.GetResult()); } this.stepBuilder = new StepBuilder(new TableBuilder(), this.nativeLanguageService); this.stepBuilder.SetKeyword(keyword); this.stepBuilder.SetName(name); }
private void CaptureAndStoreRemainingElements() { if (this.isInExample && this.exampleBuilder != null) { this.scenarioOutlineBuilder.AddExample(this.exampleBuilder.GetResult()); this.exampleBuilder = null; } if (this.featureElementState.IsBackgroundActive) { this.backgroundBuilder.AddStep(this.stepBuilder.GetResult()); this.theFeature.AddBackground(this.backgroundBuilder.GetResult()); } else if (this.featureElementState.IsScenarioActive) { if (this.stepBuilder != null) this.scenarioBuilder.AddStep(this.stepBuilder.GetResult()); this.theFeature.AddFeatureElement(this.scenarioBuilder.GetResult()); } else if (this.featureElementState.IsScenarioOutlineActive) { if (this.stepBuilder != null) this.scenarioOutlineBuilder.AddStep(this.stepBuilder.GetResult()); this.theFeature.AddFeatureElement(this.scenarioOutlineBuilder.GetResult()); } this.stepBuilder = null; this.scenarioBuilder = null; this.scenarioOutlineBuilder = null; this.backgroundBuilder = null; }
public void step(string keyword, string name, int line) { if (this.stepBuilder != null) { this.AddStepToElement(this.stepBuilder.GetResult()); } this.stepBuilder = new StepBuilder(new TableBuilder(), this.nativeLanguageService); this.stepBuilder.SetKeyword(keyword); this.stepBuilder.SetName(name); }