Example #1
0
    public bool RunTests(bool trackResurrection)
    {
        GetTargetTest d1 = new GetTargetTest(trackResurrection);
        SetTargetTest d2 = new SetTargetTest(trackResurrection);
        IsAliveTest   d3 = new IsAliveTest(trackResurrection);

        // make sure Finalizers are called
        d1 = null;
        d2 = null;
        d3 = null;
        GC.Collect();
        GC.WaitForPendingFinalizers();
        GC.Collect();

        Console.WriteLine();

        return((GetTargetTest.Passed) && (SetTargetTest.Passed) && (IsAliveTest.Passed));
    }
Example #2
0
    public bool RunTests(bool trackResurrection)
    {
        GetTargetTest d1 = new GetTargetTest(trackResurrection);
        SetTargetTest d2 = new SetTargetTest(trackResurrection);
        IsAliveTest d3 = new IsAliveTest(trackResurrection);

        // make sure Finalizers are called
        d1 = null;
        d2 = null;
        d3 = null;
        GC.Collect();
        GC.WaitForPendingFinalizers();
        GC.Collect();

        Console.WriteLine();

        return ((GetTargetTest.Passed) && (SetTargetTest.Passed) && (IsAliveTest.Passed));
    }
Example #3
0
 public static void DestroyGetTargetTest()
 {
     getTargetTest = null;
 }
Example #4
0
 public static void CreateGetTargetTest(bool trackResurrection)
 {
     getTargetTest = new GetTargetTest(trackResurrection);
 }
Example #5
0
 public static void DestroyGetTargetTest()
 {
     getTargetTest = null;
 }
Example #6
0
 public static void CreateGetTargetTest(bool trackResurrection) 
 {
     getTargetTest = new GetTargetTest(trackResurrection);
 }