/// <summary>
 /// 检查一个集合是否拥有指定数量的成员
 /// </summary>
 /// <typeparam name="T">动态类型</typeparam>
 /// <param name="enumeration"></param>
 /// <param name="count"></param>
 /// <returns></returns>
 public static bool ContainsAtLeast <T>(this IQueryable <T> enumeration, int count)
 => QueryableJudgment.ContainsAtLeast(enumeration, count);
Beispiel #2
0
        public void ContainAtLeastTest_False(int count)
        {
            var query = source.AsQueryable();

            Assert.False(QueryableJudgment.ContainsAtLeast(query, count));
        }