System.Linq.Tests.LongCountTests.LongCount2 C# (CSharp) Méthode

LongCount2() private méthode

private LongCount2 ( ) : void
Résultat void
        public void LongCount2()
        {
            var count = (new int[] { 0, 1, 2 }).AsQueryable().LongCount(n => n > 0);
            Assert.Equal(2L, count);
        }
    }