Esempio 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;
 }
Esempio 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();
     });
 }
Esempio n. 3
0
 public WorkItem(MemberInfo testMethod, ITestClassInstanceProvider instanceProvider)
 {
     TestMethod = testMethod;
     _instanceProvider = instanceProvider;
 }