Table of Contents

Class InlineDataAttribute

Namespace
Xunit
Assembly
xunit.v3.core.dll

Provides a data source for a data theory, with the data coming from inline values.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class InlineDataAttribute : DataAttribute, IDataAttribute
Inheritance
InlineDataAttribute
Implements
Inherited Members

Constructors

InlineDataAttribute(params object?[]?)

Provides a data source for a data theory, with the data coming from inline values.

Properties

Data

Gets the data to be passed to the test.

Methods

GetData(MethodInfo, DisposalTracker)

Returns the data to be used to test the theory.

SupportsDiscoveryEnumeration()

Returns true if the data attribute supports enumeration during discovery; false otherwise. Data attributes with expensive computational costs and/or randomized data sets should return false.