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 DestroySetTargetTest() { setTargetTest = null; }
public static void CreateSetTargetTest(bool trackResurrection) { setTargetTest = new SetTargetTest(trackResurrection); }