System.Collections.Tests.IList_NonGeneric_Tests.IListNonGeneric_Remove_OnReadOnlyCollection_ThrowsNotSupportedException C# (CSharp) Method

IListNonGeneric_Remove_OnReadOnlyCollection_ThrowsNotSupportedException() private method

private IListNonGeneric_Remove_OnReadOnlyCollection_ThrowsNotSupportedException ( int count ) : void
count int
return void
        public void IListNonGeneric_Remove_OnReadOnlyCollection_ThrowsNotSupportedException(int count)
        {
            if (IsReadOnly || ExpectedFixedSize)
            {
                IList collection = NonGenericIListFactory(count);
                Assert.Throws<NotSupportedException>(() => collection.Remove(CreateT(34543)));
            }
        }
IList_NonGeneric_Tests