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

IList_NonGeneric_RemoveAt_AllValidIndices() private method

private IList_NonGeneric_RemoveAt_AllValidIndices ( int count ) : void
count int
return void
        public void IList_NonGeneric_RemoveAt_AllValidIndices(int count)
        {
            if (!IsReadOnly && !ExpectedFixedSize)
            {
                IList list = NonGenericIListFactory(count);
                Assert.Equal(count, list.Count);
                Assert.All(Enumerable.Range(0, count).Reverse(), index =>
                {
                    list.RemoveAt(index);
                    Assert.Equal(index, list.Count);
                });
            }
        }
IList_NonGeneric_Tests