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); }
public void AddBackground(BackgroundBuilder backgroundBuilder) { if (background != null) throw new GherkinSemanticErrorException( "Feature file already contains a background section.", backgroundBuilder.Position); background = backgroundBuilder; }
public void AddBackground(BackgroundBuilder backgroundBuilder) { if (background != null) { throw new GherkinSemanticErrorException( "Feature file already contains a background section.", backgroundBuilder.Position); } background = backgroundBuilder; }
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); }
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); }
public void AddBackground(BackgroundBuilder backgroundBuilder) { background = backgroundBuilder; }