The TestCase type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| TestCase |
Creates a test case with a delegate to execute as its main body.
|
Methods
| Name | Description | |
|---|---|---|
| BuildStaticTest |
Builds a static test during test exploration.
(Inherited from TestDefinition.) | |
| Equals | (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.
(Inherited from TestDefinition.) | |
| 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).
(Overrides TestDefinition..::.OnExecuteSelf()()().) | |
| OnSetupChild |
Runs set-up code before each child.
(Inherited from TestDefinition.) | |
| OnSetupSelf |
Runs set-up code before execute and before all children.
(Inherited from TestDefinition.) | |
| OnTearDownChild |
Runs tear-down code after each child.
(Inherited from TestDefinition.) | |
| OnTearDownSelf |
Runs tear-down code after execute and after all children.
(Inherited from TestDefinition.) | |
| RunDynamicTest |
Runs a dynamic test during test execution.
(Inherited from TestDefinition.) | |
| ToString | (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.
(Inherited from TestDefinition.) | |
| Description |
Gets or sets the description metadata of the test, or null if none.
(Inherited from TestDefinition.) | |
| Execute |
Gets the delegate to run as the main body of the test case.
| |
| IsTestCase |
Returns true if the test represents an individual test case.
(Overrides TestDefinition..::.IsTestCase.) | |
| Kind |
Gets the test kind.
(Overrides TestDefinition..::.Kind.) | |
| Metadata |
Gets a mutable table of metadata entries associated with the test.
(Inherited from TestDefinition.) | |
| Name |
Gets the test name.
(Inherited from TestDefinition.) | |
| SetUp |
Gets or sets a set-up action to be executed before the test case.
| |
| TearDown |
Gets or sets a tear-down action to be executed after the test case.
| |
| Timeout |
Gets or sets the maximum amount of time the whole test including
its setup, teardown and body should be permitted to run.
(Inherited from TestDefinition.) |
