Table of Contents

Class ThrowsOperator

Namespace
NUnit.Framework.Constraints
Assembly
nunit.framework.dll

Operator that tests that an exception is thrown and optionally applies further tests to the exception.

public class ThrowsOperator : SelfResolvingOperator
Inheritance
ThrowsOperator
Inherited Members

Constructors

ThrowsOperator()

Construct a ThrowsOperator

public ThrowsOperator()

Methods

Reduce(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.

public override void Reduce(ConstraintBuilder.ConstraintStack stack)

Parameters

stack ConstraintBuilder.ConstraintStack