C# Class UnityEngine.NUnit.Framework.Constraints.SamePathOrUnderConstraint

SamePathOrUnderConstraint tests that one path is under another
Inheritance: PathConstraint
Datei anzeigen Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
SamePathOrUnderConstraint ( string expected )

Initializes a new instance of the T:SamePathOrUnderConstraint class.

WriteDescriptionTo ( MessageWriter writer ) : void

Write the constraint description to a MessageWriter

Protected Methods

Method Description
IsMatch ( string expectedPath, string actualPath ) : bool

Test whether the constraint is satisfied by a given value

Method Details

IsMatch() protected method

Test whether the constraint is satisfied by a given value
protected IsMatch ( string expectedPath, string actualPath ) : bool
expectedPath string The expected path
actualPath string The actual path
return bool

SamePathOrUnderConstraint() public method

Initializes a new instance of the T:SamePathOrUnderConstraint class.
public SamePathOrUnderConstraint ( string expected )
expected string The expected path

WriteDescriptionTo() public method

Write the constraint description to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter The writer on which the description is displayed
return void