System.Linq.Tests.SelectTests.Select_SourceIsNull_ArgumentNullExceptionThrown_Indexed C# (CSharp) 메소드

Select_SourceIsNull_ArgumentNullExceptionThrown_Indexed() 개인적인 메소드

        public void Select_SourceIsNull_ArgumentNullExceptionThrown_Indexed()
        {
            IEnumerable<int> source = null;
            Func<int, int, int> selector = (e, i) => i + 1;

            Assert.Throws<ArgumentNullException>("source", () => source.Select(selector));
        }
SelectTests