예제 #1
0
        private Collection4 NewCollection(string[] expected)
        {
            Collection4 c = new Collection4();

            c.AddAll(expected);
            return(c);
        }
예제 #2
0
        // Simple
        // Collection
        // Complex
        // General
        //regression
        protected virtual Type[] Concat(Type[] x, Type[] y)
        {
            Collection4 c = new Collection4(x);

            c.AddAll(y);
            return((Type[])c.ToArray(new Type[c.Size()]));
        }
        private IEnumerable NewIterable(int[] values)
        {
            Collection4 collection = new Collection4();

            collection.AddAll(IntArrays4.ToObjectArray(values));
            return(collection);
        }
            public void Run()
            {
                var l = new Collection4();

                queue.DrainTo(l);
                lock (list)
                {
                    list.AddAll(l);
                }
            }