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

NullPredicateUsed() private method

private NullPredicateUsed ( ) : void
return void
        public void NullPredicateUsed()
        {
            Expression<Func<int, bool>> predicate = null;
            Assert.Throws<ArgumentNullException>("predicate", () => Enumerable.Range(0, 3).AsQueryable().Count(predicate));
        }