Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #3
0
        void ITestVisitor.StartSection(Section section)
        {
            if (shouldStop)
            {
                return;
            }

            storePrincipal();

            _listener.StartSection(section);


            section.StartFixture(this);
        }
Example #4
0
        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));
        }