SqlDatabaseTestAction Class
Represents a set of Transact-SQL batch statements and test conditions to validate whether the statement executed correctly.
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.SqlDatabaseTestAction
Syntax
public class SqlDatabaseTestAction : Component
public ref class SqlDatabaseTestAction : Component
type SqlDatabaseTestAction =
class
inherit Component
end
Public Class SqlDatabaseTestAction
Inherits Component
Constructors
Name | Description | |
---|---|---|
SqlDatabaseTestAction() | Initializes a new instance of the SqlDatabaseTestAction class. |
Properties
Name | Description | |
---|---|---|
CanRaiseEvents | (Inherited from Component.) |
|
Conditions | Gets the collection of test conditions that are associated with the set of Transact-SQL statements. |
|
Container | (Inherited from Component.) |
|
DesignMode | (Inherited from Component.) |
|
Events | (Inherited from Component.) |
|
Site | (Inherited from Component.) |
|
SqlScript | Gets or sets a set of Transact-SQL database script statements. |
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 set of Transact-SQL batch statements and a Conditions object, which is a collection of conditions that are used to evaluate the result sets that are generated by executing the batch statements.
In the simplest case, the SqlDatabaseTestAction is an actual Transact-SQL test. Instances of the SqlDatabaseTestAction are also included in the generated code so that you can modify the state of the database before or after each test execution. Or, you can use it as a verification mechanism.
The SqlDatabaseTestAction is a Component and is generated as a local variable inside the InitializeComponent method at design time. It is then assigned to a SqlDatabaseTestActions property.
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
Conditions
SqlDatabaseTestAction
Microsoft.Data.Tools.Schema.Sql.UnitTesting Namespace
Return to top