public void Background(string keyword, string name, string description, GherkinBufferSpan headerSpan, GherkinBufferSpan descriptionSpan)
        {
            var background = new BackgroundBuilder(keyword, name, description, GetFilePosition(headerSpan.StartPosition));

            stepProcessor = background;
            featureBuilder.AddBackground(background);
        }
Ejemplo n.º 2
0
 public void AddBackground(BackgroundBuilder backgroundBuilder)
 {
     if (background != null)
         throw new GherkinSemanticErrorException(
             "Feature file already contains a background section.",
             backgroundBuilder.Position);
     background = backgroundBuilder;
 }
Ejemplo n.º 3
0
 public void AddBackground(BackgroundBuilder backgroundBuilder)
 {
     if (background != null)
     {
         throw new GherkinSemanticErrorException(
                   "Feature file already contains a background section.",
                   backgroundBuilder.Position);
     }
     background = backgroundBuilder;
 }
Ejemplo n.º 4
0
 public void background(string keyword, string name, string description, int line)
 {
     var background = new BackgroundBuilder(name, description, new FilePosition(line));
     stepProcessor = background;
     featureBuilder.AddBackground(background);
 }
Ejemplo n.º 5
0
 public void Background(string keyword, string name, string description, GherkinBufferSpan headerSpan, GherkinBufferSpan descriptionSpan)
 {
     var background = new BackgroundBuilder(keyword, name, description, GetFilePosition(headerSpan.StartPosition));
     stepProcessor = background;
     featureBuilder.AddBackground(background);
 }
Ejemplo n.º 6
0
 public void AddBackground(BackgroundBuilder backgroundBuilder)
 {
     background = backgroundBuilder;
 }