PropertyAttribute Class

Summary

Attaches information to a test assembly, fixture or method as a name/value pair.
Namespace
TCLite
Interfaces
Base Types
Derived Types
graph BT Type-->Base0["TCLiteAttribute"] click Base0 "/tc-lite/api/TCLite/TCLiteAttribute" Base0-->Base1["Attribute"] Base1-->Base2["object"] Type-.->Interface0["IApplyToTest"] click Interface0 "/tc-lite/api/TCLite.Interfaces/IApplyToTest" Type["PropertyAttribute"] class Type type-node Derived0["DescriptionAttribute"]-->Type click Derived0 "/tc-lite/api/TCLite/DescriptionAttribute"

Syntax

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

Attributes

Type Description
AttributeUsageAttribute

Constructors

Name Summary
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, int) Construct a PropertyAttribute with a name and int value
PropertyAttribute(string, string) Construct a PropertyAttribute with a name and string value

Properties

Name Value Summary
Property Property

Methods

Name Value Summary
ApplyToTest(ITest) void
Modifies a test by adding properties to it.