示例#1
0
文件: Feature.cs 项目: anatol/gherkin
 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;
 }
示例#2
0
 internal G.Background CreateBackground(string name, string description, G.Step[] steps)
 {
     G.Background background = new G.Background(
         AnyLocation,
         "Background",
         name,
         description,
         steps);
     return background;
 }
示例#3
0
 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;
 }
示例#4
0
 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));
 }
示例#5
0
 private void FormatBackground(Background background, StringBuilder result)
 {
     FormatHasDescription(background, result);
     FormatHasSteps(background, result);
     result.AppendLine();
 }