xUnit.net
Public Member Functions | Properties | List of all members
Xunit.CollectionBehaviorAttribute Class Reference

Used to declare the default test collection behavior for the assembly. More...

Inheritance diagram for Xunit.CollectionBehaviorAttribute:

Public Member Functions

 CollectionBehaviorAttribute ()
 Initializes a new instance of the CollectionBehaviorAttribute class. More...
 
 CollectionBehaviorAttribute (CollectionBehavior collectionBehavior)
 Initializes a new instance of the CollectionBehaviorAttribute class. More...
 
 CollectionBehaviorAttribute (string factoryTypeName, string factoryAssemblyName)
 Initializes a new instance of the CollectionBehaviorAttribute class. More...
 

Properties

bool DisableTestParallelization [get, set]
 Determines whether tests in this assembly are run in parallel. More...
 
int MaxParallelThreads [get, set]
 Determines how many tests can run in parallel with each other. If set to 0, the system will use Environment.ProcessorCount. If set to a negative number, then there will be no limit to the number of threads. More...
 

Detailed Description

Used to declare the default test collection behavior for the assembly.

Constructor & Destructor Documentation

◆ CollectionBehaviorAttribute() [1/3]

Xunit.CollectionBehaviorAttribute.CollectionBehaviorAttribute ( )
inline

Initializes a new instance of the CollectionBehaviorAttribute class.

◆ CollectionBehaviorAttribute() [2/3]

Xunit.CollectionBehaviorAttribute.CollectionBehaviorAttribute ( CollectionBehavior  collectionBehavior)
inline

Initializes a new instance of the CollectionBehaviorAttribute class.

Parameters
collectionBehaviorThe collection behavior for the assembly.

◆ CollectionBehaviorAttribute() [3/3]

Xunit.CollectionBehaviorAttribute.CollectionBehaviorAttribute ( string  factoryTypeName,
string  factoryAssemblyName 
)
inline

Initializes a new instance of the CollectionBehaviorAttribute class.

Parameters
factoryTypeNameThe type name of the test collection factory (that implements T:Xunit.Sdk.IXunitTestCollectionFactory).
factoryAssemblyNameThe assembly that factoryTypeName exists in.

Property Documentation

◆ DisableTestParallelization

bool Xunit.CollectionBehaviorAttribute.DisableTestParallelization
getset

Determines whether tests in this assembly are run in parallel.

◆ MaxParallelThreads

int Xunit.CollectionBehaviorAttribute.MaxParallelThreads
getset

Determines how many tests can run in parallel with each other. If set to 0, the system will use Environment.ProcessorCount. If set to a negative number, then there will be no limit to the number of threads.


The documentation for this class was generated from the following file: