System.Linq.Tests.SelectTests.Select_SelectorIsNull_ArgumentNullExceptionThrown_Indexed C# (CSharp) Méthode

Select_SelectorIsNull_ArgumentNullExceptionThrown_Indexed() private méthode

        public void Select_SelectorIsNull_ArgumentNullExceptionThrown_Indexed()
        {
            IEnumerable<int> source = Enumerable.Range(1, 10);
            Func<int, int, int> selector = null;

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