NUnit.Framework.AssertionHelper.Expect Method
Asserts that the code represented by a delegate throws an exception that satisfies the constraint provided.

Syntax

public void Expect (TestDelegate code, NUnit.Framework.Constraints.IResolveConstraint constraint)

Parameters

code
A TestDelegate to be executed
constraint
A ThrowsConstraint used in the test

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NUnit.Framework
Assembly: NUnitLite (in NUnitLite.dll)
Assembly Versions: 0.6.0.0, 1.0.0.0