The TestDefinition type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| TestDefinition |
Creates a test.
|
Methods
| Name | Description | |
|---|---|---|
| BuildStaticTest |
Builds a static test during test exploration.
(Overrides Test..::.BuildStaticTest(IPatternScope, ICodeElementInfo).) | |
| Equals |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetChildren |
Gets the children of this test.
| |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| OnExecuteSelf |
Executes the main body of the test, excluding its children (which will
run afterwards).
| |
| OnSetupChild |
Runs set-up code before each child.
| |
| OnSetupSelf |
Runs set-up code before execute and before all children.
| |
| OnTearDownChild |
Runs tear-down code after each child.
| |
| OnTearDownSelf |
Runs tear-down code after execute and after all children.
| |
| RunDynamicTest |
Runs a dynamic test during test execution.
(Overrides Test..::.RunDynamicTest(ICodeElementInfo, Action, Action).) | |
| ToString |
Returns a String that represents the current Object.
(Inherited from Object.) |
Extension Methods
| Name | Description | |
|---|---|---|
| Format | Overloaded. |
Properties
| Name | Description | |
|---|---|---|
| CodeElement |
Gets or sets the code element associated with the test, or null if none.
| |
| Description |
Gets or sets the description metadata of the test, or null if none.
| |
| IsTestCase |
Returns true if the test represents an individual test case.
| |
| Kind |
Gets the test kind.
| |
| Metadata |
Gets a mutable table of metadata entries associated with the test.
| |
| Name |
Gets the test name.
| |
| Timeout |
Gets or sets the maximum amount of time the whole test including
its setup, teardown and body should be permitted to run.
|
