Exemplo n.º 1
0
        public void Constructor_Throw_Exception_On_Null_Queue()
        {
            MonoThreadedFiberSynchronizationContext res = null;
            Action @do = () => res = new MonoThreadedFiberSynchronizationContext(null);

            @do.Should().Throw <ArgumentNullException>();
        }
Exemplo n.º 2
0
 public MonoThreadedFiberSynchronizationContextTest()
 {
     _Fiber      = new MonoThreadedFiber(t => t.Priority = ThreadPriority.Highest);
     _Dispatcher = new MonoThreadedFiberSynchronizationContext(_Fiber);
 }