コード例 #1
0
        public void should_have_cells_for_everything_that_is_not_optional_in_the_inner_grammar_and_there_is_no_default_3()
        {
            var grammar = new CurriedLineGrammar("{a} should be now", (IGrammarWithCells)fixture["Go1"], "b:2,c:3");

            grammar.GetCells().ShouldHaveTheSameElementsAs(Cell.For <string>("a"));
        }
コード例 #2
0
        public void should_have_cells_for_an_optional_cell_in_the_inner_that_is_part_of_the_template_in_the_curried_grammar()
        {
            var grammar = new CurriedLineGrammar("{a} and {c}", (IGrammarWithCells)fixture["Go2"], "b:2");

            grammar.GetCells().ShouldHaveTheSameElementsAs(Cell.For <string>("a"), Cell.For <string>("c"));
        }