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

IList_NonGeneric_IndexOf_EachValueNoDuplicates() private method

private IList_NonGeneric_IndexOf_EachValueNoDuplicates ( int count ) : void
count int
return void
        public void IList_NonGeneric_IndexOf_EachValueNoDuplicates(int count)
        {
            // Assumes no duplicate elements contained in the list returned by NonGenericIListFactory
            IList list = NonGenericIListFactory(count);
            Assert.All(Enumerable.Range(0, count), index =>
            {
                Assert.Equal(index, list.IndexOf(list[index]));
            });
        }
IList_NonGeneric_Tests