Skip to content

XUnit Verify No Exception Thrown

Jason Lewis edited this page Jan 22, 2024 · 2 revisions

Up

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

//Assert
Assert.Null(exception);
Clone this wiki locally