Show / Hide Table of Contents

Class CollectionBehaviorAttribute

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

Inheritance
Object
CollectionBehaviorAttribute
Namespace: Xunit
Assembly: xunit.core.dll
Syntax
public sealed class CollectionBehaviorAttribute : Attribute

Constructors

| Improve this Doc View Source

CollectionBehaviorAttribute()

Initializes a new instance of the CollectionBehaviorAttribute class.

Declaration
public CollectionBehaviorAttribute()
| Improve this Doc View Source

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 factoryTypeName exists in.

| Improve this Doc View Source

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 Source

DisableTestParallelization

Determines whether tests in this assembly are run in parallel.

Declaration
public bool DisableTestParallelization { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

MaxParallelThreads

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

Declaration
public int MaxParallelThreads { get; set; }
Property Value
Type Description
Int32
  • Improve this Doc
  • View Source
Back to top Generated by DocFX