private static void Execute(this string scenario, StoryRunnerFilter filter, IEnumerable<Assembly> assemblies, params IEventListener[] eventListenersArg) { var eventListeners = new List<IEventListener>(); eventListeners.AddRange(eventListenersArg); eventListeners.Add(new ColorfulConsoleOutputEventListener()); eventListeners.Add(new FailSpecResultEventListener()); var multiEventListener = new MultiOutputEventListener(eventListeners.ToArray()); var builder = new TextScenarioRunner(multiEventListener, assemblies, filter); builder.Run(scenario); }
private static void Execute(this string scenario, StoryRunnerFilter filter, IEnumerable <Assembly> assemblies, params IEventListener[] eventListenersArg) { var eventListeners = new List <IEventListener>(); eventListeners.AddRange(eventListenersArg); eventListeners.Add(new ColorfulConsoleOutputEventListener()); eventListeners.Add(new FailSpecResultEventListener()); var multiEventListener = new MultiOutputEventListener(eventListeners.ToArray()); var builder = new TextScenarioRunner(multiEventListener, assemblies, filter); builder.Run(scenario); }