NUnit.Framework.CollectionAssert.Contains C# (CSharp) Method

Contains() public static method

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
return 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

Ejemplo n.º 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