public bool RealWeakRef(int iObj, int iSwitch)
        {
            CreateObj temp   = new CreateObj(iObj);
            bool      result = temp.RunTest(iObj, iSwitch);

            return(result);
        }
示例#2
0
        public static int Main()
        {
            Console.WriteLine("Test should return with ExitCode 100 ...");
            CreateObj temp = new CreateObj();

            if (temp.RunTest())
            {
                Console.WriteLine("Test Passed");
                return(100);
            }
            Console.WriteLine("Test Failed");
            return(1);
        }
示例#3
0
        public static int Main()
        {

            Console.WriteLine("Test should return with ExitCode 100 ...");
            CreateObj temp = new CreateObj();

            if(temp.RunTest())
            {
                Console.WriteLine("Test Passed");
                return 100;
            }
            Console.WriteLine("Test Failed");
            return 1;
        }
示例#4
0
#pragma warning restore 0414

        public static int Main(String [] str)
        {
            Console.WriteLine("Test should return with ExitCode 100 ...");
            CreateObj temp = new CreateObj();
            if (temp.RunTest())
            {
                Console.WriteLine( "Test passed!" );
                return 100;
            }
            else
            {
                Console.WriteLine( "Test failed!" );
                return 1;
            }
        }
示例#5
0
#pragma warning restore 0414

        public static int Main(String [] str)
        {
            Console.WriteLine("Test should return with ExitCode 100 ...");
            CreateObj temp = new CreateObj();

            if (temp.RunTest())
            {
                Console.WriteLine("Test passed!");
                return(100);
            }
            else
            {
                Console.WriteLine("Test failed!");
                return(1);
            }
        }
示例#6
0
        public bool RealWeakRef(int iObj, int iSwitch)
        {

            CreateObj temp = new CreateObj(iObj,iSwitch);
            bool result = temp.RunTest(iObj,iSwitch);
            return result;
        }