public void Creating_SynchronizationContextFactory_WithoutContext_ThrowException() { SynchronizationContext.SetSynchronizationContext(null); SynchronizationContextFactory res = null; Action Do = () => res = new SynchronizationContextFactory(); Do.ShouldThrow<ArgumentNullException>(); }
public SynchronizationContextFactoryTest() { _UIMessageLoop = new WPFThreadingHelper(); _UIMessageLoop.Start().Wait(); _Factory = _UIMessageLoop.Dispatcher.Invoke(() => new SynchronizationContextFactory()); }
public SynchronizationContextFactoryTest() { _UIMessageLoop = new WPFThreadingHelper(); _UIMessageLoop.Start().Wait(); _Factory = _UIMessageLoop.Dispatcher.Invoke(() => new SynchronizationContextFactory()); }
public void Creating_SynchronizationContextFactory_WithoutContext_ThrowException() { SynchronizationContext.SetSynchronizationContext(null); SynchronizationContextFactory res = null; Action Do = () => res = new SynchronizationContextFactory(); Do.ShouldThrow <ArgumentNullException>(); }