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

SumOfNullableOfLong_SelectorIsNull_ArgumentNullExceptionThrown() private method

        public void SumOfNullableOfLong_SelectorIsNull_ArgumentNullExceptionThrown()
        {
            IQueryable<long?> sourceNullableLong = Enumerable.Empty<long?>().AsQueryable();
            Expression<Func<long?, long?>> selector = null;
            Assert.Throws<ArgumentNullException>("selector", () => sourceNullableLong.Sum(selector));
        }
SumTests