Property | Type | Description | |
---|---|---|---|
caseInsensitive | bool | ||
expectedPath | string |
Method | Description | |
---|---|---|
Matches ( object actual ) : bool |
Test whether the constraint is satisfied by a given value
|
Method | Description | |
---|---|---|
Canonicalize ( string path ) : string |
Transform the provided path to its canonical form so that it may be more easily be compared with other paths.
|
|
GetStringRepresentation ( ) : string |
Returns the string representation of this constraint
|
|
IsMatch ( string expectedPath, string actualPath ) : bool |
Returns true if the expected path and actual path match
|
|
IsSubPath ( string path1, string path2, bool ignoreCase ) : bool |
Test whether one path in canonical form is under another.
|
|
PathConstraint ( string expectedPath ) : System |
Construct a PathConstraint for a give expected path
|
protected static Canonicalize ( string path ) : string | ||
path | string | The original path |
return | string |
protected GetStringRepresentation ( ) : string | ||
return | string |
protected abstract IsMatch ( string expectedPath, string actualPath ) : bool | ||
expectedPath | string | |
actualPath | string | |
return | bool |
protected static IsSubPath ( string path1, string path2, bool ignoreCase ) : bool | ||
path1 | string | The first path - supposed to be the parent path |
path2 | string | The second path - supposed to be the child path |
ignoreCase | bool | Indicates whether case should be ignored |
return | bool |
public Matches ( object actual ) : bool | ||
actual | object | The value to be tested |
return | bool |
protected PathConstraint ( string expectedPath ) : System | ||
expectedPath | string | The expected path |
return | System |