public void IList_NonGeneric_RemoveAt_OnReadOnlyList(int count)
{
if (IsReadOnly && !ExpectedFixedSize)
{
IList list = NonGenericIListFactory(count);
Assert.Throws<NotSupportedException>(() => list.RemoveAt(count / 2));
Assert.Equal(count, list.Count);
}
}