Skip to content

AsyncActionAssertions Constructors ​

Provides assertions for async actions (delegates returning Task), such as verifying that exceptions are thrown.

c#
public AsyncActionAssertions(Func<Task> action);

View source

Parameters ​

NameTypeDescription
actionFunc<Task>The async action to assert on.