Class ExceptionTypeConstraint
- Namespace
- NUnit.Framework.Constraints
- Assembly
- nunit.framework.dll
ExceptionTypeConstraint is a special version of ExactTypeConstraint used to provided detailed info about the exception thrown in an error message.
public class ExceptionTypeConstraint : ExactTypeConstraint, IConstraint, IResolveConstraint
- Inheritance
-
ExceptionTypeConstraint
- Implements
- Inherited Members
Constructors
ExceptionTypeConstraint(Type)
Constructs an ExceptionTypeConstraint
public ExceptionTypeConstraint(Type type)
Parameters
type
Type
Methods
ApplyTo<TActual>(TActual)
Applies the constraint to an actual value, returning a ConstraintResult.
public override ConstraintResult ApplyTo<TActual>(TActual actual)
Parameters
actual
TActualThe value to be tested
Returns
- ConstraintResult
A ConstraintResult
Type Parameters
TActual