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

IList_NonGeneric_IndexOf_NullContainedInList() private méthode

private IList_NonGeneric_IndexOf_NullContainedInList ( int count ) : void
count int
Résultat void
        public void IList_NonGeneric_IndexOf_NullContainedInList(int count)
        {
            if (count > 0 && NullAllowed)
            {
                IList list = NonGenericIListFactory(count);
                object value = null;
                if (!list.Contains(value))
                {
                    if (IsReadOnly || ExpectedFixedSize)
                        return;
                    list[0] = value;
                }
                Assert.Equal(0, list.IndexOf(value));
            }
        }
IList_NonGeneric_Tests