XUnit Verify No Exception Thrown - gecko-8/devwiki GitHub Wiki

Up

//Act
var exception = await Record.ExceptionAsync(() => callYourMethod());

//Assert
Assert.Null(exception);