This documentation is archived and is not being maintained.

TestCondition Class

Visual Studio 2005

Represents a test condition.

Namespace: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions
Assembly: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in

public abstract class TestCondition : 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.