TestCondition Class

 

The base class for all test conditions that are used by generated code.

Namespace:   Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions
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.Conditions.TestCondition
        Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions.DataSetTestCondition
        Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions.ExecutionTimeCondition
        Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions.InconclusiveCondition
        Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions.ResultSetCondition

Syntax

public abstract class TestCondition : Component
public ref class TestCondition abstract : Component
[<AbstractClass>]
type TestCondition = 
    class
        inherit Component
    end
Public MustInherit Class TestCondition
    Inherits Component

Constructors

Name Description
System_CAPS_protmethod TestCondition()

Initializes a new instance of the TestCondition 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_pubproperty Enabled

Gets or sets a value that indicates whether the test condition is enabled.

System_CAPS_protproperty Events

(Inherited from Component.)

System_CAPS_pubproperty Name

Gets or sets the test condition name.

System_CAPS_pubproperty Site

(Inherited from Component.)

Methods

Name Description
System_CAPS_pubmethod Assert(DbConnection, SqlExecutionResult[])

Validates input parameters.

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 is the base class for all test conditions that are used to evaluate the results of unit tests in the Database Unit Test Designer. Instances of the TestCondition class are stored as local variables inside InitializeComponent and assigned to instances of the Conditions collection. There is one collection per DatabaseTestAction (pre, test, and post).

If you want to extend the test condition functionality that is available in esprdata, you can inherit from this test condition and register it. Use the DisplayName attribute to display the new test condition in the Test Conditions pane.

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.Conditions Namespace

Return to top