public void TearDown() { m_scene.Close(); m_scene = null; GC.Collect(); GC.WaitForPendingFinalizers(); }
public void TearDown() { scene.Close(); scene = null; GC.Collect(); GC.WaitForPendingFinalizers(); // We must set this back afterwards, otherwise later tests will fail since they're expecting multiple // threads. Possibly, later tests should be rewritten not to worry about such things. Util.FireAndForgetMethod = Util.DefaultFireAndForgetMethod; }