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); } } }
public static bool IsAsyncMethod(MethodInfo method) { return(AsyncInvocationRegion.IsAsyncOperation(method)); }