Exemple #1
0
        public void Constructor_Throw_Exception_On_Null_Queue()
        {
            MonoThreadedFiberSynchronizationContext res = null;
            Action @do = () => res = new MonoThreadedFiberSynchronizationContext(null);

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