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)

Syntax

'Declaration
Public MustInherit Class TestCondition _
    Inherits Component
'Usage
Dim instance As TestCondition
public abstract class TestCondition : Component
public ref class TestCondition abstract : public Component
public abstract class TestCondition extends Component

Remarks

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

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions.TestCondition
        Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions.ExecutionTimeCondition
        Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions.InconclusiveCondition
        Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions.ResultSetCondition

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

Reference

TestCondition Members

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