IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Internal.StringUtil Class Reference

Provides methods to support legacy string comparison methods. More...

Static Public Member Functions

static int Compare (string strA, string strB, bool ignoreCase)
 Compares two strings for equality, ignoring case if requested. More...
 
static bool StringsEqual (string strA, string strB, bool ignoreCase)
 Compares two strings for equality, ignoring case if requested. More...
 

Detailed Description

Provides methods to support legacy string comparison methods.

Member Function Documentation

static int NUnit.Framework.Internal.StringUtil.Compare ( string  strA,
string  strB,
bool  ignoreCase 
)
inlinestatic

Compares two strings for equality, ignoring case if requested.

Parameters
strAThe first string.
strBThe second string..
ignoreCaseif set to true, the case of the letters in the strings is ignored.
Returns
Zero if the strings are equivalent, a negative number if strA is sorted first, a positive number if strB is sorted first

Referenced by NUnit.Framework.Constraints.CollectionEquivalentConstraintTests.EquivalentHonorsUsing(), NUnit.Framework.Constraints.EqualConstraintTests.UsingModifier.UsesProvidedLambda_StringArgs(), NUnit.Framework.Tests.Constraints.DictionaryContainsValueConstraintTests.UsingIsHonored(), NUnit.Framework.Tests.Constraints.DictionaryContainsKeyConstraintTests.UsingIsHonored(), and NUnit.Framework.Constraints.CollectionContainsConstraintTests.UsingIsHonored().

static bool NUnit.Framework.Internal.StringUtil.StringsEqual ( string  strA,
string  strB,
bool  ignoreCase 
)
inlinestatic

Compares two strings for equality, ignoring case if requested.

Parameters
strAThe first string.
strBThe second string..
ignoreCaseif set to true, the case of the letters in the strings is ignored.
Returns
True if the strings are equivalent, false if not.

Referenced by NUnit.Framework.Constraints.PathConstraint.IsSubPath(), NUnit.Framework.Constraints.SamePathOrUnderConstraint.Matches(), and NUnit.Framework.Constraints.SamePathConstraint.Matches().


The documentation for this class was generated from the following file: