IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.PropertyAttribute Class Reference

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

+ Inheritance diagram for NUnit.Framework.PropertyAttribute:
+ Collaboration diagram for NUnit.Framework.PropertyAttribute:

Public Member Functions

 PropertyAttribute (string propertyName, string propertyValue)
 Construct a PropertyAttribute with a name and string value More...
 
 PropertyAttribute (string propertyName, int propertyValue)
 Construct a PropertyAttribute with a name and int value More...
 
 PropertyAttribute (string propertyName, double propertyValue)
 Construct a PropertyAttribute with a name and double value More...
 
virtual void ApplyToTest (Test test)
 Modifies a test by adding properties to it. More...
 
- Public Member Functions inherited from NUnit.Framework.NUnitAttribute
 NUnitAttribute ()
 Default constructor More...
 

Protected Member Functions

 PropertyAttribute ()
 Constructor for derived classes that set the property dictionary directly. More...
 
 PropertyAttribute (object propertyValue)
 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. More...
 

Properties

IPropertyBag Properties [get]
 Gets the property dictionary for this attribute More...
 

Private Attributes

PropertyBag properties = new PropertyBag()
 

Detailed Description

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

Constructor & Destructor Documentation

NUnit.Framework.PropertyAttribute.PropertyAttribute ( string  propertyName,
string  propertyValue 
)
inline

Construct a PropertyAttribute with a name and string value

Parameters
propertyNameThe name of the property
propertyValueThe property value

References NUnit.Framework.Internal.PropertyBag.Add().

NUnit.Framework.PropertyAttribute.PropertyAttribute ( string  propertyName,
int  propertyValue 
)
inline

Construct a PropertyAttribute with a name and int value

Parameters
propertyNameThe name of the property
propertyValueThe property value

References NUnit.Framework.Internal.PropertyBag.Add().

NUnit.Framework.PropertyAttribute.PropertyAttribute ( string  propertyName,
double  propertyValue 
)
inline

Construct a PropertyAttribute with a name and double value

Parameters
propertyNameThe name of the property
propertyValueThe property value

References NUnit.Framework.Internal.PropertyBag.Add().

NUnit.Framework.PropertyAttribute.PropertyAttribute ( )
inlineprotected

Constructor for derived classes that set the property dictionary directly.

NUnit.Framework.PropertyAttribute.PropertyAttribute ( object  propertyValue)
inlineprotected

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.

References NUnit.Framework.Internal.PropertyBag.Add().

Member Function Documentation

virtual void NUnit.Framework.PropertyAttribute.ApplyToTest ( Test  test)
inlinevirtual

Modifies a test by adding properties to it.

Parameters
testThe test to modify

Implements NUnit.Framework.Interfaces.IApplyToTest.

Reimplemented in NUnit.Framework.RequiresThreadAttribute.

Referenced by NUnit.Framework.Attributes.ApplyToTestTests.DescriptionAttributeSetsDescription(), NUnit.Framework.Attributes.ApplyToTestTests.DescriptionAttributeSetsDescriptionOnNonRunnableTest(), NUnit.Framework.Attributes.ApplyToTestTests.MaxTimeAttributeSetsMaxTime(), NUnit.Framework.Attributes.ApplyToTestTests.MaxTimeAttributeSetsMaxTimeOnNonRunnableTest(), NUnit.Framework.Attributes.ApplyToTestTests.RepeatAttributeSetsRepeatCount(), NUnit.Framework.Attributes.ApplyToTestTests.RepeatAttributeSetsRepeatCountOnNonRunnableTest(), NUnit.Framework.Attributes.ApplyToTestTests.RequiresMTAAttributeSetsApartmentState(), NUnit.Framework.Attributes.ApplyToTestTests.RequiresMTAAttributeSetsApartmentStateOnNonRunnableTest(), NUnit.Framework.Attributes.ApplyToTestTests.RequiresSTAAttributeSetsApartmentState(), NUnit.Framework.Attributes.ApplyToTestTests.RequiresSTAAttributeSetsApartmentStateOnNonRunnableTest(), NUnit.Framework.Attributes.ApplyToTestTests.SetCultureAttributeSetsSetCultureProperty(), NUnit.Framework.Attributes.ApplyToTestTests.SetCultureAttributeSetsSetCulturePropertyOnNonRunnableTest(), NUnit.Framework.Attributes.ApplyToTestTests.SetUICultureAttributeSetsSetUICultureProperty(), and NUnit.Framework.Attributes.ApplyToTestTests.SetUICultureAttributeSetsSetUICulturePropertyOnNonRunnableTest().

Member Data Documentation

PropertyBag NUnit.Framework.PropertyAttribute.properties = new PropertyBag()
private

Property Documentation

IPropertyBag NUnit.Framework.PropertyAttribute.Properties
get

Gets the property dictionary for this attribute


The documentation for this class was generated from the following file: