public ScenarioReportingContext(
     IList <string> featureReport,
     IList <string> scenarioReport,
     IList <string> stepReport,
     GherkinTestFrameworkSettingsFacade settings)
 {
     FeatureReport  = featureReport;
     ScenarioReport = scenarioReport;
     StepReport     = stepReport;
     Settings       = settings;
 }
示例#2
0
        public ScenarioTestMetadata(Type scenarioTestType)
        {
            Settings = GherkinTestFrameworkSettingsFacade.GetInstance();

            _scenarioTestType = scenarioTestType;
            foreach (StepType stepType in Enum.GetValues(typeof(StepType)))
            {
                _steps.Add(stepType, new List <StepInfo>());
            }

            IsOutputSuppressed = ExtractSuppressOutputAttribute(_scenarioTestType) != null;
        }
 public void When()
 {
     _settings = GherkinTestFrameworkSettingsFacade.GetInstance();
 }
示例#4
0
 public void It_should_use_the_class_name()
 {
     ScenarioReport.Should().StartWith(string.Format("{0}Fixture uses implicit scenario description",
                                                     GherkinTestFrameworkSettingsFacade.GetInstance().GetToken(TokenType.Scenario)));
 }
示例#5
0
 protected ReportingScenarioTest()
 {
     Settings = GherkinTestFrameworkSettingsFacade.GetInstance();
 }