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

IList_NonGeneric_Add_DuplicateValue() private method

private IList_NonGeneric_Add_DuplicateValue ( int count ) : void
count int
return void
        public void IList_NonGeneric_Add_DuplicateValue(int count)
        {
            if (!IsReadOnly && !ExpectedFixedSize)
            {
                if (DuplicateValuesAllowed)
                {
                    IList collection = NonGenericIListFactory(count);
                    object duplicateValue = CreateT(700);
                    collection.Add(duplicateValue);
                    collection.Add(duplicateValue);
                    Assert.Equal(count + 2, collection.Count);
                }
            }
        }
IList_NonGeneric_Tests