Back to Nunit

Assert.DoesNotThrowAsync

docs/articles/nunit/writing-tests/assertions/classic-assertions/Assert.DoesNotThrowAsync.md

latest507 B
Original Source

Assert.DoesNotThrowAsync

Assert.DoesNotThrowAsync verifies that the delegate provided as an argument does not throw an exception. See Assert.DoesNotThrow for synchronous code.

csharp
void Assert.DoesNotThrowAsync(AsyncTestDelegate code);
void Assert.DoesNotThrowAsync(AsyncTestDelegate code,
                              string message, params object[] params);

See Also