System.Collections.Tests.IList_NonGeneric_Tests.IList_NonGeneric_RemoveAt_OnReadOnlyList C# (CSharp) Méthode

IList_NonGeneric_RemoveAt_OnReadOnlyList() private méthode

private IList_NonGeneric_RemoveAt_OnReadOnlyList ( int count ) : void
count int
Résultat void
        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);
            }
        }
IList_NonGeneric_Tests