private GrammarAndStep <T> runStep <T>(Action <T> configure) where T : GrammarStructure, new() { var grammar = new T(); if (configure != null) { configure(grammar); } grammar.Name = "Good"; library.FixtureFor(GoodSection.FixtureName).AddStructure("Good", grammar); var step = new Step("Good"); testVisitor.StartSection(GoodSection); testVisitor.RunStep(step); return(new GrammarAndStep <T> { Step = step, Grammar = grammar }); }
public void AcceptVisitor(ITestVisitor visitor) { visitor.RunStep(this); }