System.Linq.Tests.FirstTests.ManyElementsPredicateFalseForAll C# (CSharp) Method

ManyElementsPredicateFalseForAll() private method

private ManyElementsPredicateFalseForAll ( ) : void
return void
        public void ManyElementsPredicateFalseForAll()
        {
            int[] source = { 9, 5, 1, 3, 17, 21 };
            Assert.Throws<InvalidOperationException>(() => source.AsQueryable().First(i => i % 2 == 0));
        }