Interface ICollectionBehaviorAttribute
Used to declare the default test collection behavior for the assembly. This is only valid at the assembly level, and there can be only one.
public interface ICollectionBehaviorAttribute
Properties
CollectionFactoryType
Gets the collection factory type specified by this collection behavior attribute.
Type? CollectionFactoryType { get; }
Property Value
DisableTestParallelization
Determines whether tests in this assembly are run in parallel.
bool DisableTestParallelization { get; }
Property Value
MaxParallelThreads
Determines how many tests can run in parallel with each other. If set to 0, the system will use ProcessorCount. If set to a negative number, then there will be no limit to the number of threads.
int MaxParallelThreads { get; }
Property Value
ParallelAlgorithm
Determines the parallel algorithm used when running tests in parallel.
ParallelAlgorithm ParallelAlgorithm { get; }