TestCondition Class

Represents a test condition.

Namespace: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions
Assembly: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in microsoft.visualstudio.teamsystem.data.unittesting.dll)


Public MustInherit Class TestCondition
    Inherits Component
Dim instance As TestCondition
public abstract class TestCondition : Component
public ref class TestCondition abstract : public Component
public abstract class TestCondition extends Component
public abstract class TestCondition extends Component


TestCondition 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 Team Edition for Database Professionals, you can inherit from this test condition and register it. For more information, see How to: Add a Test Condition to Database Unit Test Designer. Use the DisplayName attribute to display the new test condition in the Test Conditions pane. For a complete list of attribute to use for Properties window support in your test condition, see Attributes in Windows Forms Controls.

Inheritance Hierarchy


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


TestCondition Members
Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions Namespace