Example #1
0
        public static int Main(String [] Args){
        int iRep = 0;
        int iObj = 0;
        Console.WriteLine("Test should return with ExitCode 100 ...");

            if (Args.Length==2)
            {
                if (!Int32.TryParse( Args[0], out iRep ) ||
                    !Int32.TryParse( Args[0], out iObj ))
                {
                    iRep = 40000;
                    iObj = 100;
                }
            }
            else
            {
                iRep = 40000;
                iObj = 100;
            }

            VariantLinkList Mv_Obj = new VariantLinkList();
            if(Mv_Obj.runTest(iRep, iObj))
            {
                Console.WriteLine("Test Passed");
                return 100;
            }
            Console.WriteLine("Test Failed");
            return 1;
        }
        public static int Main(String [] Args)
        {
            int iRep = 0;
            int iObj = 0;

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

            if (Args.Length == 2)
            {
                if (!Int32.TryParse(Args[0], out iRep) ||
                    !Int32.TryParse(Args[0], out iObj))
                {
                    iRep = 40000;
                    iObj = 100;
                }
            }
            else
            {
                iRep = 40000;
                iObj = 100;
            }

            VariantLinkList Mv_Obj = new VariantLinkList();

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