public virtual void Initialize() { Description = GetSpecificationDescription(); var scenarioDescription = GetScenarioDescription(); Context = new SpecificationContext(this, TestContext, scenarioDescription); }
public ThenGrammar(SpecificationContext context, string description, Func <SpecificationContext, bool> implementation, ThenGrammarPrefix prefix) : base(context, string.Format("{0} {1}", prefix, description), implementation) { Prefix = prefix; }
public ExecutableGrammar(SpecificationContext context, string description, T implementation) : base(context, description) { Implementation = implementation; }
public GivenGrammar(SpecificationContext context, string description, Action <SpecificationContext> implementation, GivenGrammarPrefix prefix) : base(context, string.Format("{0} {1}", prefix, description), implementation) { Prefix = prefix; }
protected GrammarBase(SpecificationContext context, string description) { Context = context; Description = description; Result = GrammarResult.Unknown; }