XUnit Verify No Exception Thrown - gecko-8/devwiki GitHub Wiki
//Act
var exception = await Record.ExceptionAsync(() => callYourMethod());
//Assert
Assert.Null(exception);
//Act
var exception = await Record.ExceptionAsync(() => callYourMethod());
//Assert
Assert.Null(exception);