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

SubPathConstraint tests that the actual path is under the expected path
Inheritance: PathConstraint
Mostrar archivo Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
SubPathConstraint ( string expected ) : System

Initializes a new instance of the T:SubPathConstraint 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

SubPathConstraint() public method

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

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