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

IsEmpty() public static méthode

Assert that an array,list or other collection is empty
public static IsEmpty ( IEnumerable collection ) : void
collection IEnumerable An array, list or other collection implementing IEnumerable
Résultat void
        public static void IsEmpty(IEnumerable collection)
        {
            IsEmpty(collection, string.Empty, null);
        }
        #endregion

Same methods

CollectionAssert::IsEmpty ( IEnumerable collection, string message ) : void

Usage Example

Exemple #1
0
        public void PrimaryTypeAndAdditionalInterfaceTypesCorrectWhenOnlyOneTypeSpecified()
        {
            CompositeType type = new CompositeType(new[] { typeof(IDisposable) });

            Assert.AreEqual(typeof(IDisposable), type.PrimaryType, "Incorrect PrimaryType");
            CollectionAssert.IsEmpty(type.AdditionalInterfaceTypes, "Incorrect AdditionalInterfaceTypes");
        }
All Usage Examples Of NUnit.Framework.CollectionAssert::IsEmpty