Exemplo n.º 1
0
 public Background(string keyword, string title, string description, ScenarioSteps scenarioSteps)
 {
     Keyword     = keyword;
     Title       = title ?? "";
     Description = description ?? "";
     Steps       = scenarioSteps ?? new ScenarioSteps();
 }
Exemplo n.º 2
0
 public Scenario(string keyword, string title, string description, Tags tags, ScenarioSteps scenarioSteps)
 {
     Keyword     = keyword;
     Title       = title;
     Description = description;
     Tags        = tags;
     Steps       = scenarioSteps ?? new ScenarioSteps();
 }
Exemplo n.º 3
0
        /// <summary>
        /// Converts the provided <see cref="SpecFlow.ScenarioSteps"/> instance into an enumerable collection of <see cref="Augurk.Entities.Step"/> instances.
        /// </summary>
        /// <param name="steps">The <see cref="SpecFlow.ScenarioSteps"/> instance that should be converted.</param>
        /// <returns>An enumerable collection of <see cref="Augurk.Entities.Step"/> instances.</returns>
        public static IEnumerable <Step> ConvertToSteps(this SpecFlow.ScenarioSteps steps)
        {
            if (steps == null)
            {
                return(new Step[0]);
            }

            return(steps.Select(step => step.ConvertToStep()).ToArray());
        }
Exemplo n.º 4
0
 public ScenarioOutline(string keyword, string title, string description, Tags tags, ScenarioSteps scenarioSteps, Examples examples) :
     base(keyword, title, description, tags, scenarioSteps)
 {
     Examples = examples;
 }