iOS Guides | Samples

NUnit.Framework.PropertyAttribute Class

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

See Also: PropertyAttribute


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


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

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

PropertiesIPropertyBag. Gets the property dictionary for this attribute

Public Methods