SqlDatabaseTestActions Class
Represents 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.SqlDatabaseTestActions
Syntax
public class SqlDatabaseTestActions : Component
public ref class SqlDatabaseTestActions : Component
type SqlDatabaseTestActions =
class
inherit Component
end
Public Class SqlDatabaseTestActions
Inherits Component
Constructors
Name | Description | |
---|---|---|
SqlDatabaseTestActions() | Initializes a new instance of the SqlDatabaseTestActions class. |
Properties
Name | Description | |
---|---|---|
CanRaiseEvents | (Inherited from Component.) |
|
Container | (Inherited from Component.) |
|
DesignMode | (Inherited from Component.) |
|
Events | (Inherited from Component.) |
|
PosttestAction | Gets or sets the Transact-SQL statement(s) and test conditions that are executed after test execution. |
|
PretestAction | Gets or sets the Transact-SQL statement(s) and test conditions that are executed before the test. |
|
Site | (Inherited from Component.) |
|
TestAction | Gets or sets the Transact-SQL statement(s) and test conditions that are executed during the test. |
Methods
Name | Description | |
---|---|---|
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.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
MemberwiseClone(Boolean) | (Inherited from MarshalByRefObject.) |
|
ToString() | (Inherited from Component.) |
Events
Name | Description | |
---|---|---|
Disposed | (Inherited from Component.) |
Remarks
This class represents a database unit test that was created by using the Database Unit Test designer. The code that was generated for the unit test operates on the properties of this class when it executes a test.
Database test actions are stored as private member variables in the generated code. This member variable is referenced at the beginning of the unit test method and its properties are used during test execution. Unit test methods are designated with the TestMethodAttribute.
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
TestMethodAttribute
Microsoft.Data.Tools.Schema.Sql.UnitTesting Namespace
Return to top