IsEmpty() public static method

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
return void
Ejemplo n.º 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");
        }
Ejemplo n.º 2
0
 public void GetMatchingMethodsIgnoresPrivateMethods()
 {
     CollectionAssert.IsEmpty(new CompositeType(new[] { typeof(SqlOrderDataSource) })
                              .GetMatchingMethods(new MethodNameMatcher("PrivateMethod"), true));
 }