LevelOfParallelismAttribute public sealed class LevelOfParallelismAttribute : PropertyAttribute LevelOfParallelismAttribute is used to set the number of worker threads that may be allocated by the framework for running tests. Documentation Code public LevelOfParallelismAttribute(int level) Construct a LevelOfParallelismAttribute.