TestContext Members
Used to store information that is provided to unit tests.
The following tables list the members exposed by the TestContext type.
| Name | Description | |
|---|---|---|
| TestContext | Initializes a new instance of an object that derives from the TestContext class. |
| Name | Description | |
|---|---|---|
| AspNetDevelopmentServerPrefix | Represents the prefix for ASP.NET Development Server. |
| Name | Description | |
|---|---|---|
| DataConnection | When overridden in a derived class, gets the current data connection when the test is used for data driven testing. |
| DataRow | When overridden in a derived class, gets the current data row when test is used for data driven testing. |
| Properties | When overridden in a derived class, gets the test properties. |
| RequestedPage | Gets the requested page. |
| TestDeploymentDir | Gets the path to the test deployment directory. |
| TestDir | Gets the path to the test directory. |
| TestLogsDir | Gets the path to the test log directory. |
| TestName | Gets the test name. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| AddResultFile | When overridden in a derived class, adds a file name to the list in TestResult.ResultFileNames. |
| BeginTimer | When overridden in a derived class, begins a timer with the specified name. |
| EndTimer | When overridden in a derived class, ends a timer with the specified name |
| Equals | Overloaded. (Inherited from Object.) |
| GetHashCode | (Inherited from Object.) |
| GetType | (Inherited from Object.) |
| ReferenceEquals | (Inherited from Object.) |
| ToString | (Inherited from Object.) |
| WriteLine | When overridden in a derived class, used to write trace messages while the test is running. |