public static void Ctor_ICollection() { ArrayList arrList = Helpers.CreateIntArrayList(100); var queue = new Queue(arrList); Assert.Equal(arrList.Count, queue.Count); for (int i = 0; i < queue.Count; i++) { Assert.Equal(i, queue.Dequeue()); } }
protected override IList NonGenericIListFactory(int count) => Helpers.CreateIntArrayList(count).GetRange(0, count);
protected override IList NonGenericIListFactory(int count) => ArrayList.ReadOnly((IList)Helpers.CreateIntArrayList(count));
protected override IList NonGenericIListFactory(int count) => ArrayList.Adapter(Helpers.CreateIntArrayList(count));
protected override IList NonGenericIListFactory(int count) => ArrayList.Synchronized((IList)Helpers.CreateIntArrayList(count));