Table of Contents

Class EmptyStringConstraint

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

EmptyStringConstraint tests whether a string is empty.

public class EmptyStringConstraint : StringConstraint, IConstraint, IResolveConstraint
Inheritance
EmptyStringConstraint
Implements
Inherited Members

Constructors

EmptyStringConstraint()

public EmptyStringConstraint()

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

Matches(string)

Test whether the constraint is satisfied by a given value

protected override bool Matches(string actual)

Parameters

actual string

The value to be tested

Returns

bool

True for success, false for failure