Esempio n. 1
0
        void ITestVisitor.StartSection(Section section)
        {
            if (isLatched)
            {
                return;
            }
            string fixtureName = section.GetName();

            if (_library.HasFixture(fixtureName))
            {
                FixtureGraph fixture = _library.FixtureFor(fixtureName);
                _fixtureStack.Push(fixture);
                _stream.StartSection(section, fixture);
            }
            else
            {
                _stream.InvalidSection(section);
                _latchedSection = section;
            }
        }
Esempio n. 2
0
        void ITestVisitor.StartSection(Section section)
        {
            if (isLatched) return;
            string fixtureName = section.GetName();

            if (_library.HasFixture(fixtureName))
            {
                FixtureGraph fixture = _library.FixtureFor(fixtureName);
                _fixtureStack.Push(fixture);
                _stream.StartSection(section, fixture);
            }
            else
            {
                _stream.InvalidSection(section.FixtureName);
                _latchedSection = section;
            }
        }