System.Linq.Tests.ElementAtTests.ManyElementsIndexTargetsLast C# (CSharp) Method

ManyElementsIndexTargetsLast() private method

private ManyElementsIndexTargetsLast ( ) : void
return void
        public void ManyElementsIndexTargetsLast()
        {
            int[] source = { 9, 8, 0, -5, 10 };
            
            Assert.Equal(10, source.AsQueryable().ElementAt(source.Length - 1));
        }