NUnit.Framework.Constraints.CollectionContainsConstraint.doMatch C# (CSharp) Method

doMatch() protected method

Test whether the expected item is contained in the collection
protected doMatch ( IEnumerable actual ) : bool
actual IEnumerable
return bool
        protected override bool doMatch(IEnumerable actual)
        {
            foreach (object obj in actual)
                if (ItemsEqual(obj, expected))
                    return true;

            return false;
        }