Class SubPathConstraint
SubPathConstraint tests that the actual path is under the expected path
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class SubPathConstraint : PathConstraint, IConstraint, IResolveConstraint
Constructors
View SourceSubPathConstraint(string)
Initializes a new instance of the SubPathConstraint class.
Declaration
public SubPathConstraint(string expected)
Parameters
Type | Name | Description |
---|---|---|
string | expected | The expected path |
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 |