Table of Contents

Method GetMethodBeforeAfterTestAttributes

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

GetMethodBeforeAfterTestAttributes(MethodInfo, IReadOnlyCollection<IBeforeAfterTestAttribute>)

Gets the IBeforeAfterTestAttributes attached to the given method.

public static IReadOnlyCollection<IBeforeAfterTestAttribute> GetMethodBeforeAfterTestAttributes(MethodInfo testMethod, IReadOnlyCollection<IBeforeAfterTestAttribute> classBeforeAfterAttributes)

Parameters

testMethod MethodInfo

The test method

classBeforeAfterAttributes IReadOnlyCollection<IBeforeAfterTestAttribute>

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

Returns

IReadOnlyCollection<IBeforeAfterTestAttribute>