AcceptVisitor() public method

public AcceptVisitor ( ILineStepGatherer gatherer ) : void
gatherer ILineStepGatherer
return void
        public void accept_visitor()
        {
            var executor = MockRepository.GenerateMock<IStepExecutor>();

            var action = new SilentAction("Fixture", Stage.setup, x => { }, new Section("Math"));

            action.AcceptVisitor(executor);

            executor.AssertWasCalled(x => x.Line(action));
        }
        public void accept_visitor()
        {
            var executor = Substitute.For<ILineStepGatherer>();

            var action = new SilentAction("Fixture", Stage.setup, x => { }, new Section("Math"));

            action.AcceptVisitor(executor);

            executor.Received().Line(action);
        }