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); }
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)); }