Posted on December 1, 2022Assert DoesNotThrow in XUnit // Act var ex = await Record.ExceptionAsync(() => _thing.DoSomethingAsync()); // Assert Assert.Null(ex);