Skip to content

AsyncActionAssertions Constructors

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

public AsyncActionAssertions(Func<Task> action);

Parameters

Name Type Description
action Func<Task> The async action to assert on.