Example #1
0
        protected IList <FeatureResult> Run(string text, Type actionStepsType)
        {
            var parser = new StupidGherkinParser();
            var result = parser.Parse(text);

            var activator = new TrivialObjectActivator();
            var runner    = new FeatureRunner(activator,
                                              new IntelligentPropertySetter(new TrivialPropertySetter(), activator));

            return(result.Features
                   .Select(f => runner.Run(f, new[] { actionStepsType }, NullFilter()))
                   .ToList());
        }