コード例 #1
0
 private RandomizedContext(ThreadGroup group, Type suiteClass, RandomizedRunner runner)
 {
     this.threadGroup = group;
     this.suiteClass = suiteClass;
     this.runner = runner;
 }
コード例 #2
0
 private static RandomizedContext Create(ThreadGroup tg, Type suiteClass, RandomizedRunner runner)
 {
     lock (globalLock)
     {
         var context = new RandomizedContext(tg, suiteClass, runner);
         contexts.Add(tg, context);
         context.threadResources.Add(ThreadClass.Current(), new ThreadResources());
         return context;
     }
 }