public ScenarioDrivenSpecStepRunner(object stepHelper)
        {
            _inlineImplementations = new DictionaryStepResolver();
            resolvers = new List<IStepResolver>
                             {
                                 _inlineImplementations
                             };

            if (stepHelper == null)
                return;

            if (stepHelper.GetType()
                .GetCustomAttributes(typeof(ActionStepsAttribute), true)
                .Length > 0)
            {
                resolvers.Add(new ActionStepStepResolver(stepHelper));
            }
            else
            {
                resolvers.Add(new ReflectedMethodStepResolver(stepHelper));
            }
        }
Exemplo n.º 2
0
        public ScenarioDrivenSpecStepRunner(object stepHelper)
        {
            _inlineImplementations = new DictionaryStepResolver();
            resolvers = new List <IStepResolver>
            {
                _inlineImplementations
            };

            if (stepHelper == null)
            {
                return;
            }

            if (stepHelper.GetType()
                .GetCustomAttributes(typeof(ActionStepsAttribute), true)
                .Length > 0)
            {
                resolvers.Add(new ActionStepStepResolver(stepHelper));
            }
            else
            {
                resolvers.Add(new ReflectedMethodStepResolver(stepHelper));
            }
        }