Share via


DatabaseTestAction Class

Represents a set of Transact-SQL (T-SQL) batch statements and test conditions to validate whether the statement executed correctly.

Namespace: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting
Assembly: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in microsoft.visualstudio.teamsystem.data.unittesting.dll)

Syntax

'Declaration
Public NotInheritable Class DatabaseTestAction
    Inherits Component
'Usage
Dim instance As DatabaseTestAction
public sealed class DatabaseTestAction : Component
public ref class DatabaseTestAction sealed : public Component
public final class DatabaseTestAction extends Component
public final class DatabaseTestAction extends Component

Remarks

The DatabaseTestAction class represents set of Transact-SQL (T-SQL) batch statements and a collection of zero or more Conditions that are used to evaluate the execution result sets returned from execution of the batch statements.

In the simplest case, the DatabaseTestAction is an actual T-SQL test. Instances of the DatabaseTestAction are also included in the generated code so you can modify the state of the database before or after test execution, or you can use it as a verification mechanism.

The DatabaseTestAction is a Component and is generated as a local variable inside the InitializeComponent method at design time. It is then assigned to a DatabaseTestActions property.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
     System.ComponentModel.Component
      Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.DatabaseTestAction

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

Reference

DatabaseTestAction Members
Microsoft.VisualStudio.TeamSystem.Data.UnitTesting Namespace