예제 #1
0
        public static int Main(System.String [] Args)
        {
            int iRep = 100;
            int iObj = 10;

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

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

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

            default:
                iRep = 100;
                iObj = 10;
                break;
            }

            DoubLinkStay Mv_Leak = new DoubLinkStay();

            if (Mv_Leak.runTest(iRep, iObj))
            {
                Console.WriteLine("Test Passed");
                return(100);
            }
            Console.WriteLine("Test Failed");
            return(1);
        }
예제 #2
0
        public static int Main(System.String [] Args)
        {
            int iRep = 100;
            int iObj = 10;
            Console.WriteLine("Test should return with ExitCode 100 ...");

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

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

                default:
                    iRep = 100;
                    iObj = 10;
                break;
            }

            DoubLinkStay Mv_Leak = new DoubLinkStay();
            if(Mv_Leak.runTest(iRep, iObj ))
            {
                Console.WriteLine("Test Passed");
                return 100;
            }
            Console.WriteLine("Test Failed");
            return 1;

        }