Table of Contents

Class CollectionBehaviorAttribute

Namespace
Xunit
Assembly
xunit.v3.core.aot.dll

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

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public sealed class CollectionBehaviorAttribute : Attribute
Inheritance
CollectionBehaviorAttribute
Inherited Members

Constructors

CollectionBehaviorAttribute()

Initializes a new instance of the CollectionBehaviorAttribute class. Uses the default collection behavior (CollectionPerClass).

CollectionBehaviorAttribute(Type)

Initializes a new instance of the CollectionBehaviorAttribute class with the given custom collection behavior.

CollectionBehaviorAttribute(CollectionBehavior)

Initializes a new instance of the CollectionBehaviorAttribute class with the given built-in collection behavior.

Properties

CollectionFactoryType

Gets the collection factory type specified by this collection behavior attribute.