SqlDatabaseTestClass Class

 

Represents the base class for 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.SqlDatabaseTestClass

Syntax

[CLSCompliantAttribute(true)]
public class SqlDatabaseTestClass : Component
[CLSCompliantAttribute(true)]
public ref class SqlDatabaseTestClass : Component
[<CLSCompliantAttribute(true)>]
type SqlDatabaseTestClass = 
    class
        inherit Component
    end
<CLSCompliantAttribute(True)>
Public Class SqlDatabaseTestClass
    Inherits Component

Constructors

Name Description
System_CAPS_pubmethod SqlDatabaseTestClass()

Initializes a new instance of the SqlDatabaseTestClass 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_protproperty ExecutionContext

Gets or sets the execution context that is used to execute the Transact-SQL script that is associated with a test.

System_CAPS_protproperty PrivilegedContext

Gets or sets the privileged context that is used to verify a test execution. Also, this property verifies and executes pre-test and post-test actions for each test.

System_CAPS_pubproperty Site

(Inherited from Component.)

System_CAPS_pubproperty TestCleanupAction

Gets or sets the SqlDatabaseTestAction that will be executed after each test is run.

System_CAPS_pubproperty TestContext

Gets or sets the test context that is used by the test infrastructure.

System_CAPS_pubproperty TestInitializeAction

Gets or sets the SqlDatabaseTestAction that is executed before each test is executed.

System_CAPS_pubpropertySystem_CAPS_static TestService

Gets or sets the SqlDatabaseTestService class that is used by tests during execution.

Methods

Name Description
System_CAPS_protmethod CleanupTest()

Called by the unit testing class.

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 InitializeTest()

Called by the generated unit test class during test initialization.

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.)

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

Microsoft.Data.Tools.Schema.Sql.UnitTesting Namespace

Return to top