Class CollectionBehaviorAttribute
Used to declare the default test collection behavior for the assembly.
Namespace: Xunit
Assembly: xunit.core.dll
Syntax
public sealed class CollectionBehaviorAttribute : Attribute
Constructors
| Improve this Doc View SourceCollectionBehaviorAttribute()
Initializes a new instance of the CollectionBehaviorAttribute class.
Declaration
public CollectionBehaviorAttribute()
CollectionBehaviorAttribute(String, String)
Initializes a new instance of the CollectionBehaviorAttribute class.
Declaration
public CollectionBehaviorAttribute(string factoryTypeName, string factoryAssemblyName)
Parameters
Type | Name | Description |
---|---|---|
String | factoryTypeName | The type name of the test collection factory (that implements IXunitTestCollectionFactory). |
String | factoryAssemblyName | The assembly that |
CollectionBehaviorAttribute(CollectionBehavior)
Initializes a new instance of the CollectionBehaviorAttribute class.
Declaration
public CollectionBehaviorAttribute(CollectionBehavior collectionBehavior)
Parameters
Type | Name | Description |
---|---|---|
CollectionBehavior | collectionBehavior | The collection behavior for the assembly. |
Properties
| Improve this Doc View SourceDisableTestParallelization
Determines whether tests in this assembly are run in parallel.
Declaration
public bool DisableTestParallelization { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
MaxParallelThreads
Determines how many tests can run in parallel with each other. If set to 0, the system will
use
Declaration
public int MaxParallelThreads { get; set; }
Property Value
Type | Description |
---|---|
Int32 |