public void SetUp() { _queue = MockRepository.GenerateStub <IBlockingQueue <IRunnable> >(); _runnable = MockRepository.GenerateMock <IRunnable>(); _discardPolicy = new ThreadPoolExecutor.DiscardPolicy(); _threadPoolExecutor = Mockery.GenerateStrickMock <ThreadPoolExecutor>(1, 1, TimeSpan.FromSeconds(1), _queue); }