Search Results for

    Show / Hide Table of Contents

    Class EmptyCollectionConstraint

    EmptyCollectionConstraint tests whether a collection is empty.

    Inheritance
    object
    Constraint
    CollectionConstraint
    EmptyCollectionConstraint
    Implements
    IConstraint
    IResolveConstraint
    Inherited Members
    CollectionConstraint.IsEmpty(IEnumerable)
    CollectionConstraint.ApplyTo<TActual>(TActual)
    Constraint.ApplyTo<TActual>(ActualValueDelegate<TActual>)
    Constraint.ApplyTo<TActual>(ref TActual)
    Constraint.ApplyToAsync<TActual>(Func<Task<TActual>>)
    Constraint.GetTestObject<TActual>(ActualValueDelegate<TActual>)
    Constraint.ToString()
    Constraint.GetStringRepresentation(IEnumerable)
    Constraint.GetStringRepresentation()
    Constraint.After(int)
    Constraint.After(int, int)
    Constraint.DisplayName
    Constraint.Arguments
    Constraint.Builder
    Constraint.And
    Constraint.With
    Constraint.Or
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Framework.Constraints
    Assembly: nunit.framework.dll
    Syntax
    public class EmptyCollectionConstraint : CollectionConstraint, IConstraint, IResolveConstraint

    Constructors

    View Source

    EmptyCollectionConstraint()

    Declaration
    public EmptyCollectionConstraint()

    Properties

    View Source

    Description

    The Description of what this constraint tests, for use in messages and in the ConstraintResult.

    Declaration
    public override string Description { get; }
    Property Value
    Type Description
    string
    Overrides
    Constraint.Description

    Methods

    View Source

    Matches(IEnumerable)

    Check that the collection is empty

    Declaration
    protected override bool Matches(IEnumerable collection)
    Parameters
    Type Name Description
    IEnumerable collection
    Returns
    Type Description
    bool
    Overrides
    CollectionConstraint.Matches(IEnumerable)

    Implements

    IConstraint
    IResolveConstraint
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0