Table of Contents

Class MemberDataAttributeBase

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

Provides a base class for attributes that will provide member data.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public abstract class MemberDataAttributeBase : DataAttribute
Inheritance
MemberDataAttributeBase
Derived
Inherited Members

Constructors

MemberDataAttributeBase(string, object?[])

Provides a base class for attributes that will provide member data.

Properties

Arguments

Gets or sets the arguments passed to the member. Only supported for static methods.

DisableDiscoveryEnumeration

Returns true if the data attribute wants to skip enumerating data during discovery. This will cause the theory to yield a single test case for all data, and the data discovery will be during test execution instead of discovery.

MemberName

Gets the member name.

MemberType

Gets or sets the type to retrieve the member from. If not set, then the member will be retrieved from the unit test class.