Beispiel #1
0
        private void CaptureAndStoreRemainingElements()
        {
            if (featureElementState.IsBackgroundActive)
            {
                backgroundBuilder.AddStep(stepBuilder.GetResult());
                theFeature.AddBackground(backgroundBuilder.GetResult());
            }
            else if (featureElementState.IsScenarioActive)
            {
                if (stepBuilder != null)
                {
                    scenarioBuilder.AddStep(stepBuilder.GetResult());
                }
                theFeature.AddFeatureElement(scenarioBuilder.GetResult());
            }
            else if (featureElementState.IsScenarioOutlineActive)
            {
                if (stepBuilder != null)
                {
                    scenarioOutlineBuilder.AddStep(stepBuilder.GetResult());
                }
                theFeature.AddFeatureElement(scenarioOutlineBuilder.GetResult());
            }

            stepBuilder            = null;
            scenarioBuilder        = null;
            scenarioOutlineBuilder = null;
            backgroundBuilder      = null;
        }
Beispiel #2
0
        public void step(string keyword, string name, int line)
        {
            if (stepBuilder != null)
            {
                AddStepToElement(stepBuilder.GetResult());
            }

            stepBuilder = new StepBuilder(new TableBuilder(), nativeLanguageService);
            stepBuilder.SetKeyword(keyword);
            stepBuilder.SetName(name);
        }
Beispiel #3
0
        private void CaptureAndStoreRemainingElements()
        {
            if (featureElementState.IsBackgroundActive)
            {
                backgroundBuilder.AddStep(stepBuilder.GetResult());
                theFeature.AddBackground(backgroundBuilder.GetResult());
            }
            else if (featureElementState.IsScenarioActive)
            {
                if (stepBuilder != null) scenarioBuilder.AddStep(stepBuilder.GetResult());
                theFeature.AddFeatureElement(scenarioBuilder.GetResult());
            }
            else if (featureElementState.IsScenarioOutlineActive)
            {
                if (stepBuilder != null) scenarioOutlineBuilder.AddStep(stepBuilder.GetResult());
                theFeature.AddFeatureElement(scenarioOutlineBuilder.GetResult());
            }

            stepBuilder = null;
            scenarioBuilder = null;
            scenarioOutlineBuilder = null;
            backgroundBuilder = null;
        }
Beispiel #4
0
        public void step(string keyword, string name, int line)
        {
            if (stepBuilder != null)
            {
                AddStepToElement(stepBuilder.GetResult());
            }

            stepBuilder = new StepBuilder(new TableBuilder(), nativeLanguageService);
            stepBuilder.SetKeyword(keyword);
            stepBuilder.SetName(name);
        }
Beispiel #5
0
        private void CaptureAndStoreRemainingElements()
        {
            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;
        }
Beispiel #6
0
        public void step(string keyword, string name, int line)
        {
            if (this.stepBuilder != null)
            {
                AddStepToElement(this.stepBuilder.GetResult());
            }

            this.stepBuilder = new StepBuilder(new TableBuilder());
            this.stepBuilder.SetKeyword(keyword);
            this.stepBuilder.SetName(name);
        }