public AssemblyRunner(ISpecificationRunListener listener, RunOptions options)
        {
            var state = new RedirectOutputState();

            this.options = options;

            this.listener = new AggregateRunListener(new[]
            {
                new AssemblyLocationAwareListener(),
                new SetUpRedirectOutputRunListener(state),
                listener,
                new TearDownRedirectOutputRunListener(state),
            });

            assemblyStart = OnAssemblyStart;
            assemblyEnd   = OnAssemblyEnd;
        }
        public AssemblyRunner(ISpecificationRunListener listener, RunOptions options)
        {
            RedirectOutputState state = new RedirectOutputState();

            _listener = new AggregateRunListener(new[]
            {
                new AssemblyLocationAwareListener(),
                new SetUpRedirectOutputRunListener(state),
                listener,
                new TearDownRedirectOutputRunListener(state),
            });
            _options  = options;
            _explorer = new AssemblyExplorer();
            _executedAssemblyContexts = new List <IAssemblyContext>();

            _assemblyStart = OnAssemblyStart;
            _assemblyEnd   = OnAssemblyEnd;
        }
Пример #3
0
 public TearDownRedirectOutputRunListener(RedirectOutputState state)
 {
     this.state = state;
 }
Пример #4
0
 public SetUpRedirectOutputRunListener(RedirectOutputState state)
 {
     this.state = state;
 }