System.Linq.Tests.ZipTests.FuncIsNull C# (CSharp) Méthode

FuncIsNull() private méthode

private FuncIsNull ( ) : void
Résultat void
        public void FuncIsNull()
        {
            IQueryable<int> first = new int[] { 1, 2, 3 }.AsQueryable();
            IQueryable<int> second = new int[] { 2, 4, 6 }.AsQueryable();
            Expression<Func<int, int, int>> func = null;            
            Assert.Throws<ArgumentNullException>("resultSelector", () => first.Zip(second, func));
        }