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

IList_NonGeneric_Remove_EveryValue() private method

private IList_NonGeneric_Remove_EveryValue ( int count ) : void
count int
return void
        public void IList_NonGeneric_Remove_EveryValue(int count)
        {
            if (!IsReadOnly && !ExpectedFixedSize)
            {
                IList collection = NonGenericIListFactory(count);
                object[] arr = new object[count];
                collection.CopyTo(arr, 0);
                Assert.All(arr, value =>
                {
                    collection.Remove(value);
                });
                Assert.Empty(collection);
            }
        }
IList_NonGeneric_Tests