public void Constructor_Throw_Exception_On_Null_Queue()
        {
            MonoThreadedQueueSynchronizationContext res = null;
            Action Do = () => res = new MonoThreadedQueueSynchronizationContext(null);

            Do.ShouldThrow <ArgumentNullException>();
        }
 public DispatcherSynchronizationContextTest()
 {
     _Queue      = new MonoThreadedQueue(t => t.Priority = ThreadPriority.Highest);
     _Dispatcher = new  MonoThreadedQueueSynchronizationContext(_Queue);
 }