CreatePlan() public méthode

public CreatePlan ( Step step, FixtureLibrary library, bool inTable = false ) : IExecutionStep
step StoryTeller.Model.Step
library StoryTeller.Model.FixtureLibrary
inTable bool
Résultat IExecutionStep
        public void create_plan()
        {
            Action<ISpecContext> action = c => { };
            var grammar = new SilentGrammar(2, action);
            var step = new Step("foo");

            var plan = grammar.CreatePlan(step, new FixtureLibrary()).ShouldBeOfType<SilentAction>();

            plan.Position.ShouldBe(2);
            plan.Action.ShouldBeTheSameAs(action);
            plan.Node.ShouldBeTheSameAs(step);
        }