Export (0) Print
Expand All

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

The TestCondition type exposes the following members.

Protected methodTestConditionInitializes a new instance of the TestCondition class.

Protected propertyCanRaiseEvents (Inherited from Component.)
Public propertyContainer (Inherited from Component.)
Protected propertyDesignMode (Inherited from Component.)
Public propertyEnabledGets or sets a value that indicates whether the test condition is enabled.
Protected propertyEvents (Inherited from Component.)
Public propertyNameGets or sets the test condition name.
Public propertySite (Inherited from Component.)

Public methodAssertValidates input parameters.
Public methodCreateObjRefSecurity Critical. (Inherited from MarshalByRefObject.)
Public methodDispose() (Inherited from Component.)
Protected methodDispose(Boolean) (Inherited from Component.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Component.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLifetimeServiceSecurity Critical. (Inherited from MarshalByRefObject.)
Protected methodGetService (Inherited from Component.)
Public methodGetType (Inherited from Object.)
Public methodInitializeLifetimeServiceSecurity Critical. (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone() (Inherited from Object.)
Protected methodMemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Public methodToString (Inherited from Component.)

Public eventDisposed (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.
© 2015 Microsoft