NUnit.Framework.CollectionAssert.Contains C# (CSharp) Méthode

Contains() public static méthode

Asserts that collection contains actual as an item.
public static Contains ( IEnumerable collection, Object actual ) : void
collection IEnumerable IEnumerable of objects to be considered
actual Object Object to be found within collection
Résultat void
        public static void Contains (IEnumerable collection, Object actual)
        {
            Contains(collection, actual, string.Empty, null);
        }

Same methods

CollectionAssert::Contains ( IEnumerable collection, Object actual, string message ) : void

Usage Example

Exemple #1
0
        private void AssertMethodWasLocated(MethodInfo expected, Matcher matcher, params Type[] typesToBuildCompositeTypeFrom)
        {
            IList <MethodInfo> matches = new CompositeType(typesToBuildCompositeTypeFrom)
                                         .GetMatchingMethods(matcher, false);

            CollectionAssert.Contains(matches, expected);
        }
All Usage Examples Of NUnit.Framework.CollectionAssert::Contains