Exemplo n.º 1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="testMethodResolver"></param>
 /// <param name="outputWriter"></param>
 /// <param name="instanceProvider"></param>
 public TestRunner(TestMethodResolver testMethodResolver, OutputWriter outputWriter, 
     ITestClassInstanceProvider instanceProvider)
 {
     _testMethodResolver = testMethodResolver;
     _outputWriter = outputWriter;
     _instanceProvider = instanceProvider;
 }
Exemplo n.º 2
0
 public static void Enqueue(MemberInfo method, 
     ITestClassInstanceProvider instanceProvider, EventHandler<EventArgs> onCompleteCallback)
 {
     ThreadPool.QueueUserWorkItem((d) => {
         var workItem = new WorkItem(method, instanceProvider);
         workItem.Complete += onCompleteCallback;
         workItem.Run();
     });
 }
Exemplo n.º 3
0
 public WorkItem(MemberInfo testMethod, ITestClassInstanceProvider instanceProvider)
 {
     TestMethod = testMethod;
     _instanceProvider = instanceProvider;
 }