示例#1
0
 public void Invoke_MaxDegreeOfParallelismIsOne_DontRunParallel() =>
 ThreadManagmentTestUtils.TestThatThreadsRunInSequence(new TotalParallelismThreadManager(1, 1000));
 public void Invoke_MaxDegreeOfParallelismIsOne_DontRunParallel()
 {
     ThreadManagmentTestUtils.TestThatThreadsRunInSequence(new SequencelThreadManager());
 }
 public void Invoke_DepthGreaterThanMaxLevel_DontRunParallel(int depth, int levels) =>
 ThreadManagmentTestUtils.TestThatThreadsRunInSequence(new LevelParallelismThreadManager(levels), depth);