public void IList_NonGeneric_Remove_NonNullContainedInCollection(int count)
{
if (!IsReadOnly && !ExpectedFixedSize)
{
int seed = count * 251;
IList collection = NonGenericIListFactory(count);
object value = CreateT(seed++);
if (!collection.Contains(value))
{
collection.Add(value);
count++;
}
collection.Remove(value);
Assert.Equal(count - 1, collection.Count);
}
}