Beispiel #1
0
        protected override object RunTestMethod()
        {
            using (AsyncInvocationRegion region = AsyncInvocationRegion.Create(method))
            {
                object result = base.RunTestMethod();

                try
                {
                    return(region.WaitForPendingOperationsToComplete(result));
                }
                catch (Exception e)
                {
                    throw new NUnitException("Rethrown", e);
                }
            }
        }
Beispiel #2
0
 public static bool IsAsyncMethod(MethodInfo method)
 {
     return(AsyncInvocationRegion.IsAsyncOperation(method));
 }