예제 #1
0
        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());
            }
        }
예제 #2
0
 protected override IList NonGenericIListFactory(int count) => Helpers.CreateIntArrayList(count).GetRange(0, count);
예제 #3
0
 protected override IList NonGenericIListFactory(int count) => ArrayList.ReadOnly((IList)Helpers.CreateIntArrayList(count));
예제 #4
0
 protected override IList NonGenericIListFactory(int count) => ArrayList.Adapter(Helpers.CreateIntArrayList(count));
예제 #5
0
 protected override IList NonGenericIListFactory(int count) => ArrayList.Synchronized((IList)Helpers.CreateIntArrayList(count));