Exemplo n.º 1
0
        public static int Main(System.String [] Args)
        {
            int iRep = 0;
            int iObj = 0;

            Console.WriteLine("Test should return with ExitCode 100 ...");

            switch (Args.Length)
            {
            case 1:
                if (!Int32.TryParse(Args[0], out iRep))
                {
                    iRep = 15;
                }
                break;

            case 2:
                if (!Int32.TryParse(Args[0], out iRep))
                {
                    iRep = 15;
                }
                if (!Int32.TryParse(Args[1], out iObj))
                {
                    iObj = 1000;
                }
                break;

            default:
                iRep = 15;
                iObj = 1000;
                break;
            }

            GC_Base1 Mv_Base = new GC_Base1();

            if (Mv_Base.runTest(iRep, iObj))
            {
                Console.WriteLine("Test Passed");
                return(100);
            }
            else
            {
                Console.WriteLine("Test Failed");
                return(1);
            }
        }
Exemplo n.º 2
0
        public static int Main( System.String [] Args )
        {

            int iRep = 0;
            int iObj = 0;

            Console.WriteLine("Test should return with ExitCode 100 ...");

            switch( Args.Length )
            {
               case 1:
                   if (!Int32.TryParse( Args[0], out iRep ))
                   {
                       iRep = 15;
                   }
               break;
               case 2:
                   if (!Int32.TryParse( Args[0], out iRep ))
                   {
                       iRep = 15;
                   }
                   if (!Int32.TryParse( Args[1], out iObj ))
                   {
                       iObj = 1000;
                   }
               break;
               default:
                   iRep = 15;
                   iObj = 1000;
               break;
            }

            GC_Base1 Mv_Base = new GC_Base1();

            if(Mv_Base.runTest(iRep, iObj ))
            {
                Console.WriteLine( "Test Passed" );
                return 100;
            }
            else
            {
                Console.WriteLine( "Test Failed" );
                return 1;
            }
        }