Class PrefixConstraint
Abstract base class used for prefixes
Inheritance
PrefixConstraint
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public abstract class PrefixConstraint : Constraint, IConstraint, IResolveConstraint
Constructors
View SourcePrefixConstraint(IResolveConstraint, string)
Construct given a base constraint
Declaration
protected PrefixConstraint(IResolveConstraint baseConstraint, string descriptionPrefix)
Parameters
Type | Name | Description |
---|---|---|
IResolveConstraint | baseConstraint | |
string | descriptionPrefix | Prefix used in forming the constraint description |
Properties
View SourceBaseConstraint
The base constraint
Declaration
protected IConstraint BaseConstraint { get; }
Property Value
Type | Description |
---|---|
IConstraint |
Description
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
View SourceDescriptionPrefix
Prefix used in forming the constraint description
Declaration
protected string DescriptionPrefix { get; }
Property Value
Type | Description |
---|---|
string |