Search Results for

    Show / Hide Table of Contents

    ClassicAssert.Contains

    ClassicAssert.Contains is used to test whether an object is contained in a collection.

    ClassicAssert.Contains(object anObject, ICollection collection);
    ClassicAssert.Contains(object anObject, ICollection collection,
                    string message, params object[] params);
    

    See Also

    • CollectionContainsConstraint
    • Edit this page
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0