Class CollectionAttribute<TCollectionDefinition>
- Namespace
- Xunit
- Assembly
- xunit.v3.core.aot.dll
Used to declare a specific test collection for a test class. Equivalent to using CollectionAttribute with the type-based constructor.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class CollectionAttribute<TCollectionDefinition> : CollectionAttributeBase
Type Parameters
TCollectionDefinitionThe type for the collection definition.
- Inheritance
-
CollectionAttributeBaseCollectionAttribute<TCollectionDefinition>
- Inherited Members
Constructors
- CollectionAttribute()
Used to declare a specific test collection for a test class. Equivalent to using CollectionAttribute with the type-based constructor.