示例#1
0
        public virtual void Initialize()
        {
            Description = GetSpecificationDescription();
            var scenarioDescription = GetScenarioDescription();

            Context = new SpecificationContext(this, TestContext, scenarioDescription);
        }
示例#2
0
 public ThenGrammar(SpecificationContext context, string description, Func <SpecificationContext, bool> implementation, ThenGrammarPrefix prefix) : base(context, string.Format("{0} {1}", prefix, description), implementation)
 {
     Prefix = prefix;
 }
示例#3
0
 public ExecutableGrammar(SpecificationContext context, string description, T implementation) : base(context, description)
 {
     Implementation = implementation;
 }
示例#4
0
 public GivenGrammar(SpecificationContext context, string description, Action <SpecificationContext> implementation, GivenGrammarPrefix prefix) : base(context, string.Format("{0} {1}", prefix, description), implementation)
 {
     Prefix = prefix;
 }
示例#5
0
 protected GrammarBase(SpecificationContext context, string description)
 {
     Context     = context;
     Description = description;
     Result      = GrammarResult.Unknown;
 }