public void section_starts_the_new_fixture_on_execute_by_key() { var section = new Section("fixture1"); var context = MockRepository.GenerateMock <IFixtureContext>(); section.StartFixture(context); context.AssertWasCalled(x => x.LoadFixture("fixture1", section)); }
public void section_starts_the_new_fixture() { Section section = Section.For <StubFixture>(); var context = MockRepository.GenerateMock <IFixtureContext>(); section.StartFixture(context); context.AssertWasCalled(x => x.LoadFixture <StubFixture>(section)); }
void ITestVisitor.StartSection(Section section) { if (shouldStop) { return; } storePrincipal(); _listener.StartSection(section); section.StartFixture(this); }
public void section_starts_the_new_fixture_on_execute_by_key() { var section = new Section("fixture1"); var context = MockRepository.GenerateMock<IFixtureContext>(); section.StartFixture(context); context.AssertWasCalled(x => x.LoadFixture("fixture1", section)); }