Executes the code of the delegate and captures any exception.
If a non-null base constraint was provided, it applies that
constraint to the exception.
Syntax
Parameters
- actual
- A delegate representing the code to be tested
Returns
True if an exception is thrown and the constraint succeeds, otherwise false
Remarks
Requirements
Namespace: NUnit.Framework.Constraints
Assembly: NUnitLite (in NUnitLite.dll)
Assembly Versions: 0.6.0.0, 1.0.0.0