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

StringConstraint is the abstract base for constraints that operate on strings. It supports the IgnoreCase modifier for string operations.
Inheritance: Constraint
Mostrar archivo Open project: Unity-Technologies/nunitv2

Protected Properties

Property Type Description
caseInsensitive bool
expected string

Public Methods

Method Description
Matches ( object actual ) : bool

Test whether the constraint is satisfied by a given value

Protected Methods

Method Description
Matches ( string actual ) : bool

Test whether the constraint is satisfied by a given string

StringConstraint ( string expected )

Constructs a StringConstraint given an expected value

Method Details

Matches() public method

Test whether the constraint is satisfied by a given value
public Matches ( object actual ) : bool
actual object The value to be tested
return bool

Matches() protected abstract method

Test whether the constraint is satisfied by a given string
protected abstract Matches ( string actual ) : bool
actual string The string to be tested
return bool

StringConstraint() protected method

Constructs a StringConstraint given an expected value
protected StringConstraint ( string expected )
expected string The expected value

Property Details

caseInsensitive protected_oe property

Indicates whether tests should be case-insensitive
protected bool caseInsensitive
return bool

expected protected_oe property

The expected value
protected string expected
return string