<PackageReference Include="nunit" Version="2.5.7.10213" />

PathConstraint

public abstract class PathConstraint : Constraint
PathConstraint serves as the abstract base of constraints that operate on paths and provides several helper methods.
protected bool caseInsensitive

Flag indicating whether a caseInsensitive comparison should be made

protected string expected

The expected path used in the constraint

public PathConstraint IgnoreCase { get; }

Modifies the current instance to be case-insensitve and returns it.

public PathConstraint RespectCase { get; }

Modifies the current instance to be case-sensitve and returns it.

protected PathConstraint(string expected)

Construct a PathConstraint for a give expected path

protected string Canonicalize(string path)

Canonicalize the provided path

protected bool IsSamePath(string path1, string path2)

Test whether two paths are the same

protected bool IsSamePathOrUnder(string path1, string path2)

Test whether one path is the same as or under another path