Class ThrowsOperator
Operator that tests that an exception is thrown and optionally applies further tests to the exception.
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class ThrowsOperator : SelfResolvingOperator
Constructors
View SourceThrowsOperator()
Construct a ThrowsOperator
Declaration
public ThrowsOperator()
Methods
View SourceReduce(ConstraintStack)
Reduce produces a constraint from the operator and any arguments. It takes the arguments from the constraint stack and pushes the resulting constraint on it.
Declaration
public override void Reduce(ConstraintBuilder.ConstraintStack stack)
Parameters
Type | Name | Description |
---|---|---|
ConstraintBuilder.ConstraintStack | stack |