Example #1
0
 /// <summary>
 /// Constructs a new method container.
 /// </summary>
 /// <param name="instance">An instance of the method's type.</param>
 /// <param name="method">The method reflection object.</param>
 /// <param name="testMethod">The test method.</param>
 public MethodContainer(object instance, MethodInfo method, ITestMethod testMethod)
   : base()
 {
   _methodTask = new MethodInvokeWorkItem(instance, method, testMethod);
   _methodInfo = method;
   _method = testMethod;
 }
 /// <summary>
 /// Constructs a new method container.
 /// </summary>
 /// <param name="instance">An instance of the method's type.</param>
 /// <param name="method">The method reflection object.</param>
 /// <param name="testMethod">The test method.</param>
 public MethodContainer(object instance, MethodInfo method, ITestMethod testMethod)
     : base()
 {
     _methodTask = new MethodInvokeWorkItem(instance, method, testMethod);
     _methodInfo = method;
     _method     = testMethod;
 }