SqlDatabaseTestClass Class
Represents the base class for a database unit test.
Namespace: Microsoft.Data.Tools.Schema.Sql.UnitTesting
Assembly: Microsoft.Data.Tools.Schema.Sql.UnitTesting (in Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll)
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Microsoft.Data.Tools.Schema.Sql.UnitTesting.SqlDatabaseTestClass
Syntax
[CLSCompliantAttribute(true)]
public class SqlDatabaseTestClass : Component
[CLSCompliantAttribute(true)]
public ref class SqlDatabaseTestClass : Component
[<CLSCompliantAttribute(true)>]
type SqlDatabaseTestClass =
class
inherit Component
end
<CLSCompliantAttribute(True)>
Public Class SqlDatabaseTestClass
Inherits Component
Constructors
Name | Description | |
---|---|---|
SqlDatabaseTestClass() | Initializes a new instance of the SqlDatabaseTestClass class. |
Properties
Name | Description | |
---|---|---|
CanRaiseEvents | (Inherited from Component.) |
|
Container | (Inherited from Component.) |
|
DesignMode | (Inherited from Component.) |
|
Events | (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 | (Inherited from Component.) |
|
TestCleanupAction | Gets or sets the SqlDatabaseTestAction 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 SqlDatabaseTestAction that is executed before each test is executed. |
|
TestService | Gets or sets the SqlDatabaseTestService class that is used by tests during execution. |
Methods
Name | Description | |
---|---|---|
CleanupTest() | Called by the unit testing class. |
|
CreateObjRef(Type) | (Inherited from MarshalByRefObject.) |
|
Dispose() | (Inherited from Component.) |
|
Dispose(Boolean) | (Inherited from Component.) |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Component.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetLifetimeService() | (Inherited from MarshalByRefObject.) |
|
GetService(Type) | (Inherited from Component.) |
|
GetType() | (Inherited from Object.) |
|
InitializeLifetimeService() | (Inherited from MarshalByRefObject.) |
|
InitializeTest() | Called by the generated unit test class during test initialization. |
|
MemberwiseClone() | (Inherited from Object.) |
|
MemberwiseClone(Boolean) | (Inherited from MarshalByRefObject.) |
|
ToString() | (Inherited from Component.) |
Events
Name | Description | |
---|---|---|
Disposed | (Inherited from Component.) |
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.
See Also
Microsoft.Data.Tools.Schema.Sql.UnitTesting Namespace
Return to top