public static int Main(String [] str) { int iSize = 100; int iRep = 10; Console.WriteLine("Test should return with ExitCode 100 ..."); ArrCpy mv_obj = new ArrCpy(); Object [] ObjAry = new Object[iSize]; for (int j = 0; j < iRep; j++) { for (int i = 0; i < iSize; i++) { if (i == 0) { ObjAry[i] = new int[1]; } else if (i == 1) { ObjAry[i] = new Object[i]; } else { ObjAry[i] = mv_obj.CreatAry(i - 1, ObjAry); } } GC.Collect(); } return(100); }
public static int Main(String [] str) { int iSize = 100; int iRep = 10; Console.WriteLine("Test should return with ExitCode 100 ..."); ArrCpy mv_obj = new ArrCpy(); Object [] ObjAry = new Object[iSize]; for( int j=0; j< iRep; j++ ) { for(int i=0; i< iSize; i++) { if( i==0 ) ObjAry[i] = new int[1]; else if( i==1 ) ObjAry[i] = new Object[i]; else ObjAry[i] = mv_obj.CreatAry( i-1, ObjAry ); } GC.Collect(); } return 100; }