iOS Guides | Samples

NUnit.Framework.ValueSourceAttribute Class

ValueSourceAttribute indicates the source to be used to provide data for one parameter of a test method.

See Also: ValueSourceAttribute

Syntax

[System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=true, Inherited=false)]
public class ValueSourceAttribute : DataAttribute, IParameterDataSource

Requirements

Namespace: NUnit.Framework
Assembly: NUnitLite (in NUnitLite.dll)
Assembly Versions: 1.0.0.0

The members of NUnit.Framework.ValueSourceAttribute are listed below.

See Also: DataAttribute

Public Constructors

Construct with the name of the factory - for use with languages that don't support params arrays.
Construct with a Type and name - for use with languages that don't support params arrays.

Public Properties

[read-only]
SourceNameString. The name of a the method, property or fiend to be used as a source
[read-only]
SourceTypeType. A Type to be used as a source

Public Methods

GetData(ParameterInfo) : IEnumerable
Gets an enumeration of data items for use as arguments for a test method parameter.