Exemplo n.º 1
0
 /// <summary>
 /// Creates a WorkItem for executing this test.
 /// </summary>
 /// <param name="childFilter">A filter to be used in selecting child tests</param>
 /// <returns>A new WorkItem</returns>
 public override WorkItem CreateWorkItem(ITestFilter childFilter, FinallyDelegate finD)
 {
     //return RunState == Api.RunState.Runnable || RunState == Api.RunState.Explicit
     //    ? (WorkItem)new CompositeWorkItem(this, childFilter)
     //    : (WorkItem)new SimpleWorkItem(this);
     return(new CompositeWorkItem(this, childFilter, finD));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a WorkItem for executing this test.
 /// </summary>
 /// <param name="childFilter">A filter to be used in selecting child tests</param>
 /// <returns>A new WorkItem</returns>
 public override WorkItem CreateWorkItem(ITestFilter childFilter, FinallyDelegate fd)
 {
     // For simple test cases, we ignore the filter
     return(new SimpleWorkItem(this, fd));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a WorkItem for executing this test.
 /// </summary>
 /// <param name="childFilter">A filter to be used in selecting child tests</param>
 /// <returns>A new WorkItem</returns>
 public abstract WorkItem CreateWorkItem(ITestFilter childFilter, FinallyDelegate finD);
Exemplo n.º 4
0
 /// <summary>
 /// Creates a WorkItem for executing this test.
 /// </summary>
 /// <param name="childFilter">A filter to be used in selecting child tests</param>
 /// <returns>A new WorkItem</returns>
 public abstract WorkItem CreateWorkItem(ITestFilter childFilter, FinallyDelegate finD);
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NUnitLiteTestAssemblyRunner"/> class.
 /// </summary>
 /// <param name="builder">The builder.</param>
 public NUnitLiteTestAssemblyRunner(ITestAssemblyBuilder builder, FinallyDelegate finallyDelegate)
 {
     this.builder         = builder;
     this.finallyDelegate = finallyDelegate;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NUnitLiteTestAssemblyRunner"/> class.
 /// </summary>
 /// <param name="builder">The builder.</param>
 public NUnitLiteTestAssemblyRunner(ITestAssemblyBuilder builder, FinallyDelegate finallyDelegate)
 {
     this.builder = builder;
     this.finallyDelegate = finallyDelegate;
 }
Exemplo n.º 7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TextUI"/> class.
        /// </summary>
        /// <param name="writer">The TextWriter to use.</param>
        /// <param name="listener">The Test listener to use.</param>
        public TextUI(TextWriter writer, ITestListener listener)
        {
            // Set the default writer - may be overridden by the args specified
            this.writer = writer;
            this.finallyDelegate = new FinallyDelegate();
            this.runner = new NUnitLiteTestAssemblyRunner(new NUnitLiteTestAssemblyBuilder(), this.finallyDelegate);
            this.listener = listener;


	    AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(this.TopLevelHandler);
        }