public void IList_NonGeneric_Clear(int count)
{
IList collection = NonGenericIListFactory(count);
if (IsReadOnly || ExpectedFixedSize)
{
Assert.Throws<NotSupportedException>(() => collection.Clear());
Assert.Equal(count, collection.Count);
}
else
{
collection.Clear();
Assert.Equal(0, collection.Count);
}
}