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

IList_NonGeneric_ItemGet_NegativeIndex_ThrowsException() private method

private IList_NonGeneric_ItemGet_NegativeIndex_ThrowsException ( int count ) : void
count int
return void
        public void IList_NonGeneric_ItemGet_NegativeIndex_ThrowsException(int count)
        {
            IList list = NonGenericIListFactory(count);
            Assert.Throws(IList_NonGeneric_Item_InvalidIndex_ThrowType, () => list[-1]);
            Assert.Throws(IList_NonGeneric_Item_InvalidIndex_ThrowType, () => list[int.MinValue]);
        }
IList_NonGeneric_Tests