AcceptVisitor() public method

public AcceptVisitor ( ILineStepGatherer gatherer ) : void
gatherer ILineStepGatherer
return void
Exemplo n.º 1
0
        public static void RunAll(SpecContext context, SpecificationPlan plan)
        {
            var gatherer = new LineStepGatherer(context);
            plan.AcceptVisitor(gatherer);

            foreach (var line in gatherer.Lines)
            {
                if (!context.CanContinue()) break;

                line.Execute(context);
            }
        }
Exemplo n.º 2
0
 public StepthroughExecutor(SpecContext context, SpecificationPlan plan, IUserInterfaceObserver observer)
 {
     _observer = observer;
     _context = context;
     plan.AcceptVisitor(this);
 }