Esempio n. 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));
    }
Esempio n. 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));
    }
Esempio n. 3
0
 public static void DestroySetTargetTest()
 {
     setTargetTest = null;
 }
Esempio n. 4
0
 public static void CreateSetTargetTest(bool trackResurrection)
 {
     setTargetTest = new SetTargetTest(trackResurrection);
 }
Esempio n. 5
0
 public static void DestroySetTargetTest()
 {
     setTargetTest = null;
 }
Esempio n. 6
0
 public static void CreateSetTargetTest(bool trackResurrection) 
 {
     setTargetTest = new SetTargetTest(trackResurrection);
 }