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); }
public void Do(Action <ISpecContext> action) { var silent = new SilentGrammar(_children.Count, action); _children.Add(silent); }