PropertyAttribute Class

Definition

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

[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class PropertyAttribute : NUnit.Framework.NUnitAttribute, NUnit.Framework.Internal.IApplyToTest
type PropertyAttribute = class
    inherit NUnitAttribute
    interface IApplyToTest
Inheritance
PropertyAttribute
Derived
Attributes
Implements

Constructors

PropertyAttribute()

Constructor for derived classes that set the property dictionary directly.

PropertyAttribute(Object)

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.

PropertyAttribute(String, Double)

Construct a PropertyAttribute with a name and double value

PropertyAttribute(String, Int32)

Construct a PropertyAttribute with a name and int value

PropertyAttribute(String, String)

Construct a PropertyAttribute with a name and string value

Properties

Properties

Gets the property dictionary for this attribute

Methods

ApplyToTest(Test)

Applies to