public void accept_visitor_calls_through_to_line() { var executor = MockRepository.GenerateMock <IStepExecutor>(); var step = new LineStep(values, theLineGrammar); step.AcceptVisitor(executor); executor.AssertWasCalled(x => x.Line(step)); }
public void accept_visitor_calls_through_to_line() { var executor = Substitute.For <ILineStepGatherer>(); var step = new LineStep(values, theLineGrammar); step.AcceptVisitor(executor); executor.Received().Line(step); }