UnityEngine.NUnit.Framework.Constraints.SubstringConstraint.Matches C# (CSharp) Method

Matches() protected method

Test whether the constraint is satisfied by a given value
protected Matches ( string actual ) : bool
actual string The value to be tested
return bool
        protected override bool Matches(string actual)
        {
            if (this.caseInsensitive)
                return actual.ToLower().IndexOf(expected.ToLower()) >= 0;
            else
                return actual.IndexOf(expected) >= 0;
        }