Enum CollectionBehavior
- Namespace
- Xunit
- Assembly
- xunit.v3.core.aot.dll
Defines the built-in behavior types for collections in xUnit.net.
public enum CollectionBehavior
Fields
CollectionPerAssembly = 0By default, generates a collection per assembly, and any test classes that are not decorated with CollectionAttribute or CollectionAttribute<TCollectionDefinition> will be placed into the assembly-level collection.
CollectionPerClass = 1By default, generates a collection per test class for any test classes that are not decorated with CollectionAttribute or CollectionAttribute<TCollectionDefinition>.