Constructor CollectionAttribute
- Namespace
- Xunit
- Assembly
- xunit.v3.core.dll
CollectionAttribute(string)
Initializes a new instance of the CollectionAttribute class, with the given collection name.
public CollectionAttribute(string name)
Parameters
name
stringThe test collection name.
CollectionAttribute(Type)
Initializes a new instance of the CollectionAttribute class based on a collection definition type, with an auto-generated name based on that type. Equivalent to using CollectionAttribute<TCollectionDefinition>.
public CollectionAttribute(Type type)
Parameters
type
TypeThe type representing the collection fixture.