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);
        }
Exemplo n.º 2
0
        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));
        }