public void IList_NonGeneric_Remove_InvalidValue_ThrowsArgumentException(int count)
{
if (!IsReadOnly && !ExpectedFixedSize)
{
IList collection = NonGenericIListFactory(count);
Assert.All(InvalidValues, value =>
{
Assert.Throws<ArgumentException>(() => collection.Remove(value));
});
Assert.Equal(count, collection.Count);
}
}