Ejemplo n.º 1
0
        public static int Main(String [] Args)
        {
            Console.WriteLine("Test should return with ExitCode 100 ...");
            FragMan test = new FragMan( );

            GC.Collect();
            GC.WaitForPendingFinalizers();

            if (FragNode.Finalized == 0)
            {
                Console.WriteLine("Test Passed");
                return(100);
            }

            Console.Write(FragNode.Finalized);
            Console.WriteLine(" FragNodes were prematurely finalized");
            Console.WriteLine("Test Failed");

            GC.KeepAlive(test);
            return(1);
        }
Ejemplo n.º 2
0
        public static int Main ( String [] Args)
        {
            Console.WriteLine("Test should return with ExitCode 100 ...");
            FragMan test = new FragMan( );

            GC.Collect();
            GC.WaitForPendingFinalizers();

            if (FragNode.Finalized == 0)
            {
                Console.WriteLine("Test Passed");
                return 100;
            }

            Console.Write(FragNode.Finalized);
            Console.WriteLine(" FragNodes were prematurely finalized");
            Console.WriteLine("Test Failed");

            GC.KeepAlive(test);
            return 1;

        }