コード例 #1
0
        public GivenGrammar Given(string description, Action <SpecificationContext> implementation)
        {
            var given = new GivenGrammar(Context, description, implementation, GivenGrammarPrefix.Given);

            given.Evaluate();
            return(given);
        }
コード例 #2
0
        public static GivenGrammar And(this GivenGrammar givenGrammar, string description, Action <SpecificationContext> implementation)
        {
            var andGivenGrammar = new GivenGrammar(givenGrammar.Context, description, implementation, GivenGrammarPrefix.And);

            andGivenGrammar.Evaluate();
            return(andGivenGrammar);
        }