System.Linq.Tests.SequenceEqualTests.SecondSourceNull C# (CSharp) Method

SecondSourceNull() private method

private SecondSourceNull ( ) : void
return void
        public void SecondSourceNull()
        {
            int[] first = { };
            IQueryable<int> second = null;
            Assert.Throws<ArgumentNullException>("source2", () => first.AsQueryable().SequenceEqual(second));
            Assert.Throws<ArgumentNullException>("source2", () => first.AsQueryable().SequenceEqual(second, null));
        }