Table of Contents

Enum CollectionBehavior

Namespace
Xunit
Assembly
xunit.v3.core.dll

Defines the built-in behavior types for collections in xUnit.net.

public enum CollectionBehavior

Fields

CollectionPerAssembly = 0

By default, generates a collection per assembly, and any test classes that are not decorated with CollectionAttribute or CollectionAttribute<TCollectionDefinition> (or any class that implements ICollectionAttribute) will be placed into the assembly-level collection.

CollectionPerClass = 1

By default, generates a collection per test class for any test classes that are not decorated with CollectionAttribute or CollectionAttribute<TCollectionDefinition> (or any class that implements ICollectionAttribute).