Export (0) Print
Expand All

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. 
Top

  Name Description
Public field Static AspNetDevelopmentServerPrefix Represents the prefix for ASP.NET Development Server. 
Top

  Name Description
Public property DataConnection When overridden in a derived class, gets the current data connection when the test is used for data driven testing. 
Public property DataRow When overridden in a derived class, gets the current data row when test is used for data driven testing. 
Public property Properties When overridden in a derived class, gets the test properties. 
Public property RequestedPage Gets the requested page. 
Public property TestDeploymentDir Gets the path to the test deployment directory. 
Public property TestDir Gets the path to the test directory. 
Public property TestLogsDir Gets the path to the test log directory. 
Public property TestName Gets the test name. 
Top

(see also Protected Methods )
  Name Description
Public method AddResultFile When overridden in a derived class, adds a file name to the list in TestResult.ResultFileNames.  
Public method BeginTimer When overridden in a derived class, begins a timer with the specified name.  
Public method EndTimer When overridden in a derived class, ends a timer with the specified name  
Public method Equals  Overloaded. (Inherited from Object.)
Public method GetHashCode  (Inherited from Object.)
Public method GetType  (Inherited from Object.)
Public method Static ReferenceEquals  (Inherited from Object.)
Public method ToString  (Inherited from Object.)
Public method WriteLine When overridden in a derived class, used to write trace messages while the test is running.  
Top

  Name Description
Protected method Finalize  (Inherited from Object.)
Protected method MemberwiseClone  (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft