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)


public abstract class TestCondition : Component

NameDescription
System_CAPS_protmethodTestCondition()

Initializes a new instance of the TestCondition class.

NameDescription
System_CAPS_protpropertyCanRaiseEvents

(Inherited from Component.)

System_CAPS_pubpropertyContainer

(Inherited from Component.)

System_CAPS_protpropertyDesignMode

(Inherited from Component.)

System_CAPS_pubpropertyEnabled

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

System_CAPS_protpropertyEvents

(Inherited from Component.)

System_CAPS_pubpropertyName

Gets or sets the test condition name.

System_CAPS_pubpropertySite

(Inherited from Component.)

NameDescription
System_CAPS_pubmethodAssert(DbConnection, SqlExecutionResult[])

Validates input parameters.

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

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: