public static void EnsureCollected(params WeakReference[] references) { DispatcherHelper.DoEvents(); GCTestHelper.EnsureCollected(references); }
public static void CollectOptional(params WeakReference[] references) { DispatcherHelper.DoEvents(); GCTestHelper.CollectOptional(references); }
public virtual void EnqueueWindowUpdateLayout(DispatcherPriority priority) { EnqueueCallback(delegate { DispatcherHelper.UpdateLayoutAndDoEvents(Window, priority); }); }
public void RunBeforeAnyTests() { dispatcher = Dispatcher.CurrentDispatcher; DispatcherHelper.ForceIncreasePriorityContextIdleMessages(); }
static WpfTestWindow() { DispatcherHelper.ForceIncreasePriorityContextIdleMessages(); }