[Test] public void DiscardOldestAndRunRunnableWithNonShutdownExecutorService() { _discardOldestPolicy.RejectedExecution(_runnable, _threadPoolExecutor); IRunnable r; _queue.AssertWasCalled(q => q.Poll(out r)); _threadPoolExecutor.AssertWasCalled(e => e.Execute(_runnable)); }