public static bool testMethod()
            {
                DestructorsTestClass7 mc = new DestructorsTestClass7();

                mc = null;
                Microsoft.SPOT.Debug.GC(true);
                int sleepTime = 5000;
                int slept     = 0;

                while (intI != 3 && slept < sleepTime)
                {
                    System.Threading.Thread.Sleep(10);
                    slept += 10;
                }
                Log.Comment("Thread has slept for");
                Log.Comment(slept.ToString());
                if (intI == 3)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            public static bool testMethod()
            {
                DestructorsTestClass7 mc = new DestructorsTestClass7();

                mc = null;
                //nanoFramework.Runtime.Native.GC.Run(true);
                int sleepTime = 5000;
                int slept     = 0;

                while (intI != 3 && slept < sleepTime)
                {
                    System.Threading.Thread.Sleep(10);
                    slept += 10;
                }
                OutputHelper.WriteLine("Thread has slept for");
                OutputHelper.WriteLine(slept.ToString());
                if (intI == 3)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
 public MFTestResults Destructors7_Test()
 {
     //Ported from Destructors7.cs
     Log.Comment(" Section 10.12");
     Log.Comment(" Destructors are not inherited. Thus, a class");
     Log.Comment(" has no other destructors than those that are ");
     Log.Comment(" actually declared in the class.");
     Log.Comment("");
     Log.Comment("Note: This test may fail due to lengthy garbage collection, look for Destructor messages in later logs");
     if (DestructorsTestClass7.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
 public static bool testMethod()
 {
     DestructorsTestClass7 mc = new DestructorsTestClass7();
     mc = null;
     Microsoft.SPOT.Debug.GC(true); 
     int sleepTime = 5000;
     int slept = 0;
     while (intI != 3 && slept < sleepTime)
     {
         System.Threading.Thread.Sleep(10);
         slept += 10;
     }
     Log.Comment("Thread has slept for");
     Log.Comment(slept.ToString());
     if (intI == 3)
     {
         return true;
     }
     else
     {
         return false;
     }
 }