Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 /// <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;
 }