public Feature(Tag[] tags, Location location, string language, string keyword, string name, string description, Background background, ScenarioDefinition[] scenarioDefinitions, Comment[] comments) { Tags = tags; Location = location; Language = language; Keyword = keyword; Name = name; Description = description; Background = background; ScenarioDefinitions = scenarioDefinitions; Comments = comments; }
internal G.Background CreateBackground(string name, string description, G.Step[] steps) { G.Background background = new G.Background( AnyLocation, "Background", name, description, steps); return background; }
public SpecFlowFeature(Tag[] tags, Location location, string language, string keyword, string name, string description, Background background, ScenarioDefinition[] scenarioDefinitions, Comment[] comments, string sourceFilePath) : base(tags, location, language, keyword, name, description, background, scenarioDefinitions, comments) { this.SourceFilePath = sourceFilePath; }
internal G.Feature CreateFeature(string name, string description, string[] tags = null, G.Background background = null, G.ScenarioDefinition[] scenarioDefinitions = null) { return(new G.Feature((tags ?? new string[0]).Select(this.CreateTag).ToArray(), null, null, "Feature", name, description, background, scenarioDefinitions, null)); }
private void FormatBackground(Background background, StringBuilder result) { FormatHasDescription(background, result); FormatHasSteps(background, result); result.AppendLine(); }