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