Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents the base class for a database unit test.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Microsoft.Data.Schema.UnitTesting.DatabaseTestClass
Namespace: Microsoft.Data.Schema.UnitTesting
Assembly: Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)
Syntax
'Declaration
Public Class DatabaseTestClass _
Inherits Component
public class DatabaseTestClass : Component
public ref class DatabaseTestClass : public Component
type DatabaseTestClass =
class
inherit Component
end
public class DatabaseTestClass extends Component
The DatabaseTestClass type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
DatabaseTestClass | Initializes a new instance of the DatabaseTestClass class. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
CanRaiseEvents | Gets a value indicating whether the component can raise an event. (Inherited from Component.) |
![]() |
Container | Gets the IContainer that contains the Component. (Inherited from Component.) |
![]() |
DesignMode | Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.) |
![]() |
Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) |
![]() |
ExecutionContext | Gets or sets the execution context that is used to execute the Transact-SQL script that is associated with a test. |
![]() |
PrivilegedContext | Gets or sets the privileged context that is used to verify a test execution. Also, this property verifies and executes pre-test and post-test actions for each test. |
![]() |
Site | Gets or sets the ISite of the Component. (Inherited from Component.) |
![]() |
TestCleanupAction | Gets or sets the DatabaseTestAction that will be executed after each test is run. |
![]() |
TestContext | Gets or sets the test context that is used by the test infrastructure. |
![]() |
TestInitializeAction | Gets or sets the DatabaseTestAction that is executed before each test is executed. |
![]() ![]() |
TestService | Gets or sets the DatabaseTestService class that is used by tests during execution. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
CleanupTest | Called by the unit testing class. |
![]() |
CreateObjRef | Security Critical. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() |
Dispose() | Releases all resources used by the Component. (Inherited from Component.) |
![]() |
Dispose(Boolean) | Releases the unmanaged resources used by the Component and optionally releases the managed resources. (Inherited from Component.) |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetLifetimeService | Security Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() |
GetService | Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
InitializeLifetimeService | Security Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() |
InitializeTest | Called by the generated unit test class during test initialization. |
![]() |
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() |
ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
Top
Events
Name | Description | |
---|---|---|
![]() |
Disposed | Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.