Skip to content

Assert.DoesNotThrow

Rob Prouse edited this page Mar 5, 2016 · 6 revisions

Assert.DoesNotThrow verifies that the delegate provided as an argument does not throw an exception. See Assert.DoesNotThrowAsync for asynchronous code.

void Assert.DoesNotThrow( TestDelegate code );
void Assert.DoesNotThrow( TestDelegate code, 
                          string message, params object[] parms);

See also...

* Assert.Throws * ThrowsConstraint
Clone this wiki locally