iOS Guides | Samples

NUnit.Framework.PropertyAttribute Class

PropertyAttribute is used to attach information to a test as a name/value pair..

See Also: PropertyAttribute

Syntax

[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class PropertyAttribute : NUnitAttribute, IApplyToTest

Requirements

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

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

See Also: NUnitAttribute

Public Constructors

Construct a PropertyAttribute with a name and double value
Construct a PropertyAttribute with a name and int value
Construct a PropertyAttribute with a name and string value

Protected Constructors

Constructor for derived classes that set the property dictionary directly.
Constructor for use by derived classes that use the name of the type as the property name. Derived classes must ensure that the Type of the property value is a standard type supported by the BCL. Any custom types will cause a serialization Exception when in the client.

Public Properties

[read-only]
PropertiesIPropertyBag. Gets the property dictionary for this attribute

Public Methods