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)); }
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)); }
public static void DestroyGetTargetTest() { getTargetTest = null; }
public static void CreateGetTargetTest(bool trackResurrection) { getTargetTest = new GetTargetTest(trackResurrection); }