TestContext Members
Include Protected Members
Include Inherited Members
Used to store information that is provided to unit tests.
The TestContext type exposes the following members.
Constructors
Name
Description
Initializes a new instance of an object that derives from the TestContext class.
Top
Methods
Name
Description
When overridden in a derived class, adds a file name to the list in TestResult.ResultFileNames.
When overridden in a derived class, begins a timer with the specified name.
When overridden in a derived class, ends a timer with the specified name.
Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Serves as a hash function for a particular type. (Inherited from Object.)
Gets the type of the current instance. (Inherited from Object.)
Creates a shallow copy of the current Object. (Inherited from Object.)
Returns a string that represents the current object. (Inherited from Object.)
When overridden in a derived class, used to write trace messages while the test is running.
Top
Fields
Name
Description
Represents the prefix for ASP.NET Development Server.
Top
Properties
Name
Description
You can use this property in a TestCleanup method to determine the outcome of a test that has run.
When overridden in a derived class, gets the current data connection when the test is used for data driven testing.
When overridden in a derived class, gets the current data row when test is used for data driven testing.
When overridden in a derived class, gets the test properties.
Gets the requested page.
Gets the path to the test deployment directory.
Gets the path to the test directory.
Gets the path to the test log directory.
Gets the test name.
Top