System.Linq.Tests.SelectTests.SingleElementIndexedSelector C# (CSharp) Method

SingleElementIndexedSelector() private method

private SingleElementIndexedSelector ( ) : void
return void
        public void SingleElementIndexedSelector()
        {
            var source = new[]
            {
                new  { name = "Prakash", custID = 98088 }
            };
            string[] expected = { "Prakash" };

            Assert.Equal(expected, source.Select((e, index) => e.name));
        }
SelectTests