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)
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions.TestCondition
Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions.DataSetTestCondition
Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions.ExecutionTimeCondition
Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions.InconclusiveCondition
Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions.ResultSetCondition
Syntax
public abstract class TestCondition : Component
public ref class TestCondition abstract : Component
[<AbstractClass>]
type TestCondition =
class
inherit Component
end
Public MustInherit Class TestCondition
Inherits Component
Constructors
Name | Description | |
---|---|---|
TestCondition() | Initializes a new instance of the TestCondition class. |
Properties
Name | Description | |
---|---|---|
CanRaiseEvents | (Inherited from Component.) |
|
Container | (Inherited from Component.) |
|
DesignMode | (Inherited from Component.) |
|
Enabled | Gets or sets a value that indicates whether the test condition is enabled. |
|
Events | (Inherited from Component.) |
|
Name | Gets or sets the test condition name. |
|
Site | (Inherited from Component.) |
Methods
Name | Description | |
---|---|---|
Assert(DbConnection, SqlExecutionResult[]) | Validates input parameters. |
|
CreateObjRef(Type) | (Inherited from MarshalByRefObject.) |
|
Dispose() | (Inherited from Component.) |
|
Dispose(Boolean) | (Inherited from Component.) |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Component.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetLifetimeService() | (Inherited from MarshalByRefObject.) |
|
GetService(Type) | (Inherited from Component.) |
|
GetType() | (Inherited from Object.) |
|
InitializeLifetimeService() | (Inherited from MarshalByRefObject.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
MemberwiseClone(Boolean) | (Inherited from MarshalByRefObject.) |
|
ToString() | (Inherited from Component.) |
Events
Name | Description | |
---|---|---|
Disposed | (Inherited from Component.) |
Remarks
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.
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
Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions Namespace
Return to top