public void builds_sentence()
        {
            var grammar  = new TestActionGrammar();
            var sentence = grammar.ToStructure(new FixtureLibrary()).ShouldBeOfType <Sentence>();

            sentence.ShouldEqual(new Sentence("Increment by {number}", new[] { Cell.For <int>("number") }));
        }
        public void GetCells()
        {
            var          grammar = new TestActionGrammar();
            IList <Cell> cells   = grammar.GetCells();

            cells.Count.ShouldEqual(1);

            cells[0].ShouldEqual(new Cell("number", typeof(int)));
        }
        public void execute_picks_up_the_correct_cell()
        {
            var  grammar = new TestActionGrammar();
            Step step    = new Step().With("number", "43");

            grammar.Execute(step);

            TestActionGrammar.Count.ShouldEqual(43);
        }