Поделиться через


DatabaseTestClass Members

Represents the base class for a database unit test.

The following tables list the members exposed by the DatabaseTestClass type.

Public Constructors

  Name Description
Public constructor DatabaseTestClass Initializes a new instance of the DatabaseTestClass class. 

Top

Public Properties

(see also Protected Properties )

  Name Description
Public property Container  (Inherited from Component.)
Public property Site  (Inherited from Component.)
Public property TestCleanupAction Gets or sets the DatabaseTestAction that will be executed after each test is run. 
Public property TestContext Gets or sets the test context being used by the test infrastructure. 
Public property TestInitializeAction Gets or sets the DatabaseTestAction that will be executed before each test is executed. 
Public property Static TestService Gets or sets the instance of the DatabaseTestService class that is used by tests during execution. 

Top

Protected Properties

  Name Description
Protected property CanRaiseEvents  (Inherited from Component.)
Protected property DesignMode  (Inherited from Component.)
Protected property Events  (Inherited from Component.)
Protected property ExecutionContext Gets or sets the execution context used to execute the T-SQL script associated with a test. 
Protected property PrivilegedContext Gets or sets the privileged context used to verify test execution and execute and verify the pre and post-test actions for each test. 

Top

Public Methods

(see also Protected Methods )

  Name Description
Public method CreateObjRef  (Inherited from MarshalByRefObject.)
Public method Dispose  Overloaded. (Inherited from Component.)
Public method Equals  Overloaded. (Inherited from Object.)
Public method GetHashCode  (Inherited from Object.)
Public method GetLifetimeService  (Inherited from MarshalByRefObject.)
Public method GetType  (Inherited from Object.)
Public method InitializeLifetimeService  (Inherited from MarshalByRefObject.)
Public method Static ReferenceEquals  (Inherited from Object.)
Public method ToString  (Inherited from Component.)

Top

Protected Methods

  Name Description
Protected method CleanupTest Called by the TestCleanup method in the generated unit testing class.  
Protected method Dispose  Overloaded. (Inherited from Component.)
Protected method Finalize  (Inherited from Component.)
Protected method GetService  (Inherited from Component.)
Protected method InitializeTest Called by the generated unit test class during test initialization.  
Protected method MemberwiseClone  Overloaded. (Inherited from MarshalByRefObject.)

Top

Public Events

  Name Description
Public event Disposed  (Inherited from Component.)

Top

See Also

Reference

DatabaseTestClass Class
Microsoft.VisualStudio.TeamSystem.Data.UnitTesting Namespace