Skip to content

AsyncActionAssertions.NotThrowAsync Method ​

Definition ​

Asserts that the async action does not throw any exception.

c#
public Task NotThrowAsync();

Returns ​

Task

A Task that completes successfully if no exception is thrown.