public void make_the_last_parameter_the_output_cell_if_not_aliased()
        {
            MethodInfo method = ReflectionHelper.GetMethod<ReflectionTarget>(x => x.Adding(0, 0));

            var grammar = new ValueCheckMethod(method, new ReflectionTarget());

            var sentence = grammar.ToStructure(new FixtureLibrary()).ShouldBeOfType<Sentence>();

            sentence.AllErrors().Any().ShouldBeFalse();
            sentence.Cells.FirstOrDefault(x => x.IsResult).Key.ShouldEqual("sum");
        }
        public void create_a_grammar_structure()
        {
            MethodInfo method = ReflectionHelper.GetMethod<ReflectionTarget>(x => x.GetNameAndAge("", 0));

            var grammar = new ValueCheckMethod(method, new ReflectionTarget());

            var sentence = grammar.ToStructure(new FixtureLibrary()).ShouldBeOfType<Sentence>();

            sentence.ShouldEqual(Sentence.For(method.GetTemplate(), Cell.For<string>("name"), Cell.For<int>("age"),
                                              Cell.For<string>("theValue")));
        }