Table of Contents

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

TCollectionDefinition

The type for the collection definition.

Inheritance
CollectionAttributeBase
CollectionAttribute<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.