Bagikan melalui


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
System_CAPS_pubmethod SqlDatabaseTestActions()

Initializes a new instance of the SqlDatabaseTestActions class.

Properties

Name Description
System_CAPS_protproperty CanRaiseEvents

(Inherited from Component.)

System_CAPS_pubproperty Container

(Inherited from Component.)

System_CAPS_protproperty DesignMode

(Inherited from Component.)

System_CAPS_protproperty Events

(Inherited from Component.)

System_CAPS_pubproperty PosttestAction

Gets or sets the Transact-SQL statement(s) and test conditions that are executed after test execution.

System_CAPS_pubproperty PretestAction

Gets or sets the Transact-SQL statement(s) and test conditions that are executed before the test.

System_CAPS_pubproperty Site

(Inherited from Component.)

System_CAPS_pubproperty TestAction

Gets or sets the Transact-SQL statement(s) and test conditions that are executed during the test.

Methods

Name Description
System_CAPS_pubmethod CreateObjRef(Type)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethod Dispose()

(Inherited from Component.)

System_CAPS_protmethod Dispose(Boolean)

(Inherited from Component.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Component.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_protmethod GetService(Type)

(Inherited from Component.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod InitializeLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone(Boolean)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethod ToString()

(Inherited from Component.)

Events

Name Description
System_CAPS_pubevent 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