Class SamePathConstraint
- Namespace
- NUnit.Framework.Constraints
- Assembly
- nunit.framework.dll
Summary description for SamePathConstraint.
public class SamePathConstraint : PathConstraint, IConstraint, IResolveConstraint
- Inheritance
-
SamePathConstraint
- Implements
- Inherited Members
Constructors
SamePathConstraint(string)
Initializes a new instance of the SamePathConstraint class.
public SamePathConstraint(string expected)
Parameters
expected
stringThe expected path
Properties
Description
The Description of what this constraint tests, for use in messages and in the ConstraintResult.
public override string Description { get; }
Property Value
Methods
Matches(string)
Test whether the constraint is satisfied by a given value
protected override bool Matches(string actual)
Parameters
actual
stringThe value to be tested
Returns
- bool
True for success, false for failure