ProcessDelegates() public method

public ProcessDelegates ( ) : void
return void
Exemplo n.º 1
0
        protected Scenario()
        {
            var firstRun = !AlreadyRanDelegates.TryGetValue(GetType(), out _testStateManager);

            if (firstRun)
            {
                _testStateManager = new TestStateManager(this);
                var initializer = new TestInitializer(this, _testStateManager);
                initializer.ProcessDelegates();

                AlreadyRanDelegates.TryAdd(GetType(), _testStateManager);
            }
        }
Exemplo n.º 2
0
        public void Setup()
        {
            _testStateManager = new TestStateManager(this);
            var initializer = new TestInitializer(this,_testStateManager);

            //todo: there needs to be a common way to ignore setup for scenarios where all tests are ignored.  this sucks.
            if (!GetType().GetMethods().Any(y => new DefaultTestRunnerConfiguration().ThenIdentificationMethod(y) &&
                                                 !y.GetCustomAttributes(typeof (IgnoreAttribute), true).Any()))
            {
                return;
            }

            initializer.ProcessDelegates();
            _testStateManager.WriteSpecification();
        }
Exemplo n.º 3
0
 protected Scenario()
 {
     _testStateManager = new TestStateManager(this);
     _initializer = new TestInitializer(this,_testStateManager);
     _initializer.ProcessDelegates();
 }