Attributes - HervisDaubeny/HDUnitTesting GitHub Wiki

HDUnit.Attributes

Type HDUnit.Attributes.HDClassConstructorAttribute

Attribute for providing parameters to class constructor.


Property HDUnit.Attributes.HDClassConstructorAttribute.ConstructorParameters

Collection of objects to be passed to class constructor.


Method HDUnit.Attributes.HDClassConstructorAttribute.#ctor(System.Object[])

Attribute for providing parameters to class constructor.

Name Description
ConstructorParameters: Collection of objects to be passed to class constructor

Type HDUnit.Attributes.HDGenericParametersAttribute

Attribute for passing generic types and parameters to a generic TestMethod.


Property HDUnit.Attributes.HDGenericParametersAttribute.Types

Types used for construction of a generic method


Property HDUnit.Attributes.HDGenericParametersAttribute.Parameters

Parameters used for calling the resulting generic method


Method HDUnit.Attributes.HDGenericParametersAttribute.#ctor(System.Type[],System.Object[])

Attribute for passing generic and normal parameters to a generic TestMethod.

Name Description
Types: Types used for construction of a generic method
Parameters: Parameters used for calling the resulting generic method

Type HDUnit.Attributes.HDParametersAttribute

Attribute for passing parameters to a TestMethod.


Property HDUnit.Attributes.HDParametersAttribute.Parameters

Parameters for calling the method


Method HDUnit.Attributes.HDParametersAttribute.#ctor(System.Object[])

Attribute for passing parameters to a TestMethod.

Name Description
Parameters: Parameters for calling the method

Type HDUnit.Attributes.HDRootAttribute

Abstract attribute. Allows to filter all my attributes thanks to inheritance.


Type HDUnit.Attributes.HDRunAfterAttribute

Attribute allowing user to control flow of the testing. Requires valid name of existing TestMethod within the same TestClass as this method.


Property HDUnit.Attributes.HDRunAfterAttribute.MethodName

Name of TestMethod that must be run before this method


Method HDUnit.Attributes.HDRunAfterAttribute.#ctor(System.String)

Attribute allowing user to control flow of the testing. Requires valid name of existing TestMethod within the same TestClass as this method.

Name Description
MethodName: Name of TestMethod that must be run before this method

Type HDUnit.Attributes.HDTestClassAttribute

Attribute designating this class as TestClass for HDTester


Type HDUnit.Attributes.HDTestMethodAttribute

Attribute designating this method as TestMethod for HDTester


Property HDUnit.Attributes.HDTestMethodAttribute.MethodName

User given name of the test, used for listing results


Method HDUnit.Attributes.HDTestMethodAttribute.#ctor

Attribute designating this method as TestMethod for HDUnitTests


Method HDUnit.Attributes.HDTestMethodAttribute.#ctor(System.String)

Attribute designating this method as TestMethod for HDUnitTests using custom name

Name Description
MethodName: User given name of the test, used for listing results