Class SamePathConstraint
Summary description for SamePathConstraint.
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class SamePathConstraint : PathConstraint, IConstraint, IResolveConstraint
Constructors
View SourceSamePathConstraint(string)
Initializes a new instance of the SamePathConstraint class.
Declaration
public SamePathConstraint(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 |