Table of Contents

Class EmptyGuidConstraint

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

EmptyGuidConstraint tests whether a Guid is empty.

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

Constructors

EmptyGuidConstraint()

public EmptyGuidConstraint()

Properties

Description

The Description of what this constraint tests, for use in messages and in the ConstraintResult.

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