protected virtual void AppendExampleSetLine(StringBuilder result, GherkinDialect dialect, ExampleSet exampleSet) { result.AppendFormat("{0}: {1}", dialect.GetBlockKeywords(GherkinBlockKeyword.Examples).First(), exampleSet.Title); AppendLine(result); }
protected virtual void AppendScenarioLine(StringBuilder result, Scenario scenario, GherkinDialect dialect, bool isOutline) { AppendNodeLine(result, scenario.FilePosition, "{0}: {1}", dialect.GetBlockKeywords(isOutline ? GherkinBlockKeyword.ScenarioOutline : GherkinBlockKeyword.Scenario).First(), scenario.Title); if (!string.IsNullOrEmpty(scenario.Description)) AppendMulitLine(result, scenario.Description); }