Table of Contents

Method GetClassBeforeAfterTestAttributes

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

GetClassBeforeAfterTestAttributes(Type, IReadOnlyCollection<IBeforeAfterTestAttribute>)

Gets the IBeforeAfterTestAttributes attached to the given test class.

public static IReadOnlyCollection<IBeforeAfterTestAttribute> GetClassBeforeAfterTestAttributes(Type testClass, IReadOnlyCollection<IBeforeAfterTestAttribute> collectionBeforeAfterAttributes)

Parameters

testClass Type

The test class

collectionBeforeAfterAttributes IReadOnlyCollection<IBeforeAfterTestAttribute>

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

Returns

IReadOnlyCollection<IBeforeAfterTestAttribute>