Summary
Executes the code and returns success if an exception is thrown.
- Namespace
- TCLite
.Constraints - Containing Type
- Throws
Exception Constraint
Syntax
protected override ConstraintResult ApplyConstraint<T>(T actual)
Type Parameters
Name | Description |
---|---|
T |
Parameters
Name | Type | Description |
---|---|---|
actual | T | A delegate representing the code to be tested |
Return Value
Type | Description |
---|---|
ConstraintResult | True if an exception is thrown, otherwise false |