public void Invoke_MaxDegreeOfParallelismIsGreaterThenThreads_RunAllThreadsParallel() { const int degreeOfParallelism = 10; var manager = new TotalParallelismThreadManager(degreeOfParallelism, 1000); ThreadManagmentTestUtils.TestThatAllThreadsRunInParallel(manager); }
public void Invoke_DepthEqualeMaxLevel_RunAllThreadsParallel(int depth, int levels) => ThreadManagmentTestUtils.TestThatAllThreadsRunInParallel(new LevelParallelismThreadManager(levels), depth);