You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix check for invocation of async infrastructure methods via reflection (#121609)
MethodInfo.Invoke has multiple implementation strategies. The check for
async infrastructure methods needs to be placed in the code that is
shared by all implementation strategies.
Before this change, this check would not kick in under managed debugger
or when the test is run with
`Switch.System.Reflection.ForceEmitInvoke=true` appcontext switch.
Also, this check should fail with NotSupportedException, without
wrapping it in TargetInvocationException() to match existing behaviors.
0 commit comments