Show / Hide Table of Contents

Class InlineDataAttribute

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

Inheritance
Object
DataAttribute
InlineDataAttribute
Inherited Members
DataAttribute.Skip
Namespace: Xunit
Assembly: xunit.core.dll
Syntax
public sealed class InlineDataAttribute : DataAttribute

Constructors

| Improve this Doc View Source

InlineDataAttribute(Object[])

Initializes a new instance of the InlineDataAttribute class.

Declaration
public InlineDataAttribute(params object[] data)
Parameters
Type Name Description
Object[] data

The data values to pass to the theory.

Methods

| Improve this Doc View Source

GetData(MethodInfo)

Declaration
public override IEnumerable<object[]> GetData(MethodInfo testMethod)
Parameters
Type Name Description
MethodInfo testMethod
Returns
Type Description
IEnumerable<Object[]>
Overrides
DataAttribute.GetData(MethodInfo)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX