コード例 #1
0
        public static ThenGrammar Then(this GivenGrammar givenGrammar, string description, Func <SpecificationContext, bool> implementation)
        {
            var thenGrammar = new ThenGrammar(givenGrammar.Context, description, implementation, ThenGrammarPrefix.Then);

            thenGrammar.Evaluate();
            return(thenGrammar);
        }
コード例 #2
0
 public static ThenGrammar And(this ThenGrammar thenGrammar, string description)
 {
     return(And(thenGrammar, description, null));
 }