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()

public TrueConstraint()

Properties

Description

public override string Description { get; }

Property Value

string

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