[Test] public void NewCachedThreadPoolByFactoryCanExecuteRunnables() { var e = Executors.NewCachedThreadPool(new SimpleThreadFactory()); CanExecuteRunnable(e); JoinPool(e); }
[Test] public void NewCachedThreadPoolChokesOnNullFactory() { var e = Assert.Throws <ArgumentNullException>( () => Executors.NewCachedThreadPool(null)); Assert.That(e.ParamName, Is.EqualTo("threadFactory")); }
[Test] public void NewCachedThreadPoolCanExecuteRunnables() { var e = Executors.NewCachedThreadPool(); CanExecuteRunnable(e); JoinPool(e); }