System.Linq.Tests.SumTests.SumOfInt_SelectorIsNull_ArgumentNullExceptionThrown C# (CSharp) Method

SumOfInt_SelectorIsNull_ArgumentNullExceptionThrown() private method

        public void SumOfInt_SelectorIsNull_ArgumentNullExceptionThrown()
        {
            IQueryable<int> sourceInt = Enumerable.Empty<int>().AsQueryable();
            Expression<Func<int, int>> selector = null;
            Assert.Throws<ArgumentNullException>("selector", () => sourceInt.Sum(selector));
        }
SumTests