Table of Contents

Method GetCollectionBeforeAfterTestAttributes

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

GetCollectionBeforeAfterTestAttributes(Type?, IReadOnlyCollection<IBeforeAfterTestAttribute>)

Gets the IBeforeAfterTestAttributes attached to the given test collection.

public static IReadOnlyCollection<IBeforeAfterTestAttribute> GetCollectionBeforeAfterTestAttributes(Type? collectionDefinition, IReadOnlyCollection<IBeforeAfterTestAttribute> assemblyBeforeAfterTestAttributes)

Parameters

collectionDefinition Type

The collection definition type

assemblyBeforeAfterTestAttributes IReadOnlyCollection<IBeforeAfterTestAttribute>

The before after attributes from the test assembly, to be merged into the result.

Returns

IReadOnlyCollection<IBeforeAfterTestAttribute>