ThrowsConstraint(Constraint) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ThrowsConstraint class, using a constraint to be applied to the exception.
public ThrowsConstraint (NUnit.Framework.Constraints.Constraint baseConstraint);
new NUnit.Framework.Constraints.ThrowsConstraint : NUnit.Framework.Constraints.Constraint -> NUnit.Framework.Constraints.ThrowsConstraint
Parameters
- baseConstraint
- Constraint
A constraint to apply to the caught exception.