IsEmpty() 공개 정적인 메소드

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
리턴 void
예제 #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");
        }
예제 #2
0
 public void GetMatchingMethodsIgnoresPrivateMethods()
 {
     CollectionAssert.IsEmpty(new CompositeType(new[] { typeof(SqlOrderDataSource) })
                              .GetMatchingMethods(new MethodNameMatcher("PrivateMethod"), true));
 }