public void calls_listener_start_section() { var context = new TestContext(x => x.AddFixture<MathFixture>()); var listener = MockRepository.GenerateMock<ITestObserver>(); context.Listener = listener; listener.Expect(x => x.CanContinue(null)).Return(true).IgnoreArguments().Repeat.Any(); var section = new Section("Math"); context.CallOn<ITestVisitor>(x => x.StartSection(section)); listener.AssertWasCalled(x => x.StartSection(section)); }