Method IsAsyncVoid
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
IsAsyncVoid(MethodInfo)
Determines if the given method is async void by looking for the AsyncStateMachineAttribute and void return type on the method definition.
public static bool IsAsyncVoid(MethodInfo method)
Parameters
methodMethodInfoThe method to test
Returns
- bool
Returns
trueif the method is async void; returnsfalseotherwise.