System.Linq.Tests.OrderByTests.FirstAndLastAreDuplicatesNullPassedAsComparer C# (CSharp) Method

FirstAndLastAreDuplicatesNullPassedAsComparer() private method

private FirstAndLastAreDuplicatesNullPassedAsComparer ( ) : void
return void
        public void FirstAndLastAreDuplicatesNullPassedAsComparer()
        {
            int[] source = { 5, 1, 3, 2, 5 };
            int[] expected = { 1, 2, 3, 5, 5 };

            Assert.Equal(expected, source.AsQueryable().OrderBy(e => e, null));
        }