System.Linq.Tests.LastTests.NullPredicate C# (CSharp) Méthode

NullPredicate() private méthode

private NullPredicate ( ) : void
Résultat void
        public void NullPredicate()
        {
            Expression<Func<int, bool>> predicate = null;
            Assert.Throws<ArgumentNullException>("predicate", () => Enumerable.Range(0, 3).AsQueryable().Last(predicate));
        }