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