Skip to content

ThrowsNothingConstraint

jnm2 edited this page Mar 18, 2017 · 3 revisions

ThrowsNothingConstraint asserts that the delegate passed as its argument does not throw an exception.

Constructor

ThrowsNothingConstraint()

Syntax

Throws.Nothing

Example of Use

Assert.That(() => SomeMethod(actual), Throws.Nothing);
Clone this wiki locally