System.Linq.Tests.CountTests.PredicateTrueFirstAndLast C# (CSharp) Method

PredicateTrueFirstAndLast() private method

private PredicateTrueFirstAndLast ( ) : void
return void
        public void PredicateTrueFirstAndLast()
        {
            int[] data = { 2, 5, 7, 9, 29, 10 };
            Assert.Equal(2, data.AsQueryable().Count(i => i % 2 == 0));
        }