protected GherkinKeywordBase(ILanguageInfo info, GherkinKeyword keyword, string name, string description) { #if PREFER_GEHERKIN_PLUS switch (keyword) { case GherkinKeyword.ScenarioOutline: this.Keyword = info.Get(GherkinKeyword.Scenarios); break; case GherkinKeyword.Examples: this.Keyword = info.Get(GherkinKeyword.Where); break; default: this.Keyword = info.Get(keyword); break; } #else Keyword = info.Get(keyword); #endif this.Name = name ?? string.Empty; this.Description = description ?? string.Empty; }
/// <summary> /// Initializes a new instance of the <see cref="GherkinBuilder{T}" /> class. /// </summary> /// <param name="info">The information.</param> /// <param name="keyword">The block keyword.</param> protected GherkinBuilder(ILanguageInfo info, GherkinKeyword keyword) { this.Keyword = info.Get(keyword); this.LanguageInfo = info; }