Table of Contents

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 string

The 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 Type

The type representing the collection fixture.