System.Collections.Tests.IList_NonGeneric_Tests.IList_NonGeneric_Insert_IndexGreaterThanListCount_Appends C# (CSharp) Method

IList_NonGeneric_Insert_IndexGreaterThanListCount_Appends() private method

private IList_NonGeneric_Insert_IndexGreaterThanListCount_Appends ( int count ) : void
count int
return void
        public void IList_NonGeneric_Insert_IndexGreaterThanListCount_Appends(int count)
        {
            if (!IsReadOnly && !ExpectedFixedSize)
            {
                IList list = NonGenericIListFactory(count);
                object validAdd = CreateT(12350);
                list.Insert(count, validAdd);
                Assert.Equal(count + 1, list.Count);
                Assert.Equal(validAdd, list[count]);
            }
        }
IList_NonGeneric_Tests