iOS Guides | Samples

NUnit.Framework.TestCaseSourceAttribute Class

TestCaseSourceAttribute indicates the source to be used to provide test cases for a test method.

See Also: TestCaseSourceAttribute

Syntax

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)]
public class TestCaseSourceAttribute : DataAttribute, ITestCaseSource

Requirements

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

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

See Also: DataAttribute

Public Constructors

Construct with the name of the method, property or field that will prvide data
Construct with a Type
Construct with a Type and name

Public Properties

CategoryString. Gets or sets the category associated with this test. May be a single category or a comma-separated list.
[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