IEnumerable <IProcessor> _GetProcessors(Story story) { var runner = TestRunner.ConstructFor(story); if (runner != null) { yield return(runner); } var consoleReporter = ConsoleReport.ConstructFor(story); if (consoleReporter != null) { yield return(consoleReporter); } yield return(new ExceptionProcessor()); var storyCache = StoryCache.ConstructFor(story); if (storyCache != null) { yield return(storyCache); } yield return(new Disposer()); foreach (var addedProcessor in _addedProcessors) { yield return(addedProcessor()); } }