System.Collections.Tests.SortedListTests.SetByIndex C# (CSharp) Method

SetByIndex() private method

private SetByIndex ( ) : void
return void
        public static void SetByIndex()
        {
            SortedList sortList1 = Helpers.CreateIntSortedList(100);
            Helpers.PerformActionOnAllSortedListWrappers(sortList1, sortList2 =>
            {
                for (int i = 0; i < sortList2.Count; i++)
                {
                    sortList2.SetByIndex(i, i + 1);
                    Assert.Equal(i + 1, sortList2.GetByIndex(i));
                }
            });
        }
SortedListTests