Run() protected method

protected Run ( Stream scenario ) : void
scenario System.IO.Stream
return void
コード例 #1
0
		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);
		}
コード例 #2
0
        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);
        }