Class EmptyStringConstraint
EmptyStringConstraint tests whether a string is empty.
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class EmptyStringConstraint : StringConstraint, IConstraint, IResolveConstraint
Constructors
View SourceEmptyStringConstraint()
Declaration
public EmptyStringConstraint()
Properties
View SourceDescription
The Description of what this constraint tests, for use in messages and in the ConstraintResult.
Declaration
public override string Description { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
View SourceMatches(string?)
Test whether the constraint is satisfied by a given value
Declaration
protected override bool Matches(string? actual)
Parameters
Type | Name | Description |
---|---|---|
string | actual | The value to be tested |
Returns
Type | Description |
---|---|
bool | True for success, false for failure |