System.Linq.Tests.FirstOrDefaultTests.NullSourcePredicateUsed C# (CSharp) Method

NullSourcePredicateUsed() private method

private NullSourcePredicateUsed ( ) : void
return void
        public void NullSourcePredicateUsed()
        {
            Assert.Throws<ArgumentNullException>("source", () => ((IQueryable<int>)null).FirstOrDefault(i => i != 2));
        }