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)

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.Data.Tools.Schema.Sql.UnitTesting.SqlDatabaseTestAction

public class SqlDatabaseTestAction : Component

NameDescription
System_CAPS_pubmethodSqlDatabaseTestAction()

Initializes a new instance of the SqlDatabaseTestAction class.

NameDescription
System_CAPS_protpropertyCanRaiseEvents

(Inherited from Component.)

System_CAPS_pubpropertyConditions

Gets the collection of test conditions that are associated with the set of Transact-SQL statements.

System_CAPS_pubpropertyContainer

(Inherited from Component.)

System_CAPS_protpropertyDesignMode

(Inherited from Component.)

System_CAPS_protpropertyEvents

(Inherited from Component.)

System_CAPS_pubpropertySite

(Inherited from Component.)

System_CAPS_pubpropertySqlScript

Gets or sets a set of Transact-SQL database script statements.

NameDescription
System_CAPS_pubmethodCreateObjRef(Type)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodDispose()

(Inherited from Component.)

System_CAPS_protmethodDispose(Boolean)

(Inherited from Component.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Component.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_protmethodGetService(Type)

(Inherited from Component.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodToString()

(Inherited from Component.)

NameDescription
System_CAPS_pubeventDisposed

(Inherited from Component.)

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: