Table of Contents

Class TrueConstraint

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

TrueConstraint tests that the actual value is true

public class TrueConstraint : Constraint, IConstraint, IResolveConstraint
Inheritance
TrueConstraint
Implements
Inherited Members

Constructors

TrueConstraint()

Initializes a new instance of the TrueConstraint class.

public TrueConstraint()

Methods

ApplyTo<TActual>(TActual)

Test whether the constraint is satisfied by a given value

public override ConstraintResult ApplyTo<TActual>(TActual actual)

Parameters

actual TActual

The value to be tested

Returns

ConstraintResult

True for success, false for failure

Type Parameters

TActual