public void IList_NonGeneric_ItemSet_OnReadOnlyList(int count) { if (IsReadOnly) { IList list = NonGenericIListFactory(count); Assert.Throws<NotSupportedException>(() => list[count / 2] = CreateT(321432)); Assert.Equal(count, list.Count); } }