Asserts that the code represented by a delegate throws an exception
that satisfies the constraint provided.
Syntax
Parameters
- code
- A TestDelegate to be executed
- constraint
- A ThrowsConstraint used in the test
Remarks
Requirements
Namespace: NUnit.Framework
Assembly: NUnitLite (in NUnitLite.dll)
Assembly Versions: 0.6.0.0, 1.0.0.0