TestCondition Class
The base class for all test conditions that are used by generated code.
System.MarshalByRefObject
System.ComponentModel.Component
Microsoft.Data.Schema.UnitTesting.Conditions.TestCondition
Microsoft.Data.Schema.UnitTesting.Conditions.DataSetTestCondition
Microsoft.Data.Schema.UnitTesting.Conditions.ExecutionTimeCondition
Microsoft.Data.Schema.UnitTesting.Conditions.InconclusiveCondition
Microsoft.Data.Schema.UnitTesting.Conditions.ResultSetCondition
Assembly: Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)
The TestCondition type exposes the following members.
Name | Description | |
---|---|---|
![]() | CanRaiseEvents | Gets a value indicating whether the component can raise an event. (Inherited from Component.) |
![]() | Container | Gets the IContainer that contains the Component. (Inherited from Component.) |
![]() | DesignMode | Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.) |
![]() | Enabled | Gets or sets a value that indicates whether the test condition is enabled. |
![]() | Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) |
![]() | Name | Gets or sets the test condition name. |
![]() | Site | Gets or sets the ISite of the Component. (Inherited from Component.) |
Name | Description | |
---|---|---|
![]() | Assert | Validates input parameters. |
![]() | CreateObjRef | Security Critical. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | Dispose() | Releases all resources used by the Component. (Inherited from Component.) |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the Component and optionally releases the managed resources. (Inherited from Component.) |
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLifetimeService | Security Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetService | Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeLifetimeService | Security Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() | ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (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. For more information, see How to: Create Test Conditions for the Database Unit Test Designer. Use the DisplayName attribute to display the new test condition in the Test Conditions pane.