Exemple #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));
 }
Exemple #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));
 }
Exemple #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);
Exemple #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);
 /// <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;
 }
Exemple #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);
        }