Table of Contents

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

method MethodInfo

The method to test

Returns

bool

Returns true if the method is async void; returns false otherwise.