public bool IsSame(MonoThreadedQueueSynchronizationContext iother) { return _dispatcher == iother._dispatcher; }
public DispatcherSynchronizationContextTest() { _Queue = new MonoThreadedQueue(t => t.Priority = ThreadPriority.Highest); _Dispatcher = new MonoThreadedQueueSynchronizationContext(_Queue); }
public void Constructor_Throw_Exception_On_Null_Queue() { MonoThreadedQueueSynchronizationContext res = null; Action Do = () => res = new MonoThreadedQueueSynchronizationContext(null); Do.ShouldThrow<ArgumentNullException>(); }
public bool IsSame(MonoThreadedQueueSynchronizationContext iother) { return(_dispatcher == iother._dispatcher); }