Class InlineDataAttribute
Provides a data source for a data theory, with the data coming from inline values.
Inherited Members
Namespace: Xunit
Assembly: xunit.core.dll
Syntax
public sealed class InlineDataAttribute : DataAttribute
Constructors
| Improve this Doc View SourceInlineDataAttribute(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 SourceGetData(MethodInfo)
Declaration
public override IEnumerable<object[]> GetData(MethodInfo testMethod)
Parameters
Type | Name | Description |
---|---|---|
MethodInfo | testMethod |
Returns
Type | Description |
---|---|
IEnumerable<Object[]> |