测试条件的基类,这些测试条件在 DataSet 上操作,并且由用户在测试“设计时”配置。 这些条件通过对数据库查询测试的预期结果来配置。
继承层次结构
System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.Data.Schema.UnitTesting.Conditions.TestCondition
        Microsoft.Data.Schema.UnitTesting.Conditions.DataSetTestCondition
          Microsoft.Data.Schema.UnitTesting.Conditions.ChecksumCondition
          Microsoft.Data.Schema.UnitTesting.Conditions.ExpectedSchemaCondition
命名空间:  Microsoft.Data.Schema.UnitTesting.Conditions
程序集:  Microsoft.Data.Schema.UnitTesting(在 Microsoft.Data.Schema.UnitTesting.dll 中)
语法
声明
Public MustInherit Class DataSetTestCondition _
    Inherits TestCondition
public abstract class DataSetTestCondition : TestCondition
public ref class DataSetTestCondition abstract : public TestCondition
[<AbstractClass>]
type DataSetTestCondition =  
    class
        inherit TestCondition
    end
public abstract class DataSetTestCondition extends TestCondition
DataSetTestCondition 类型公开以下成员。
构造函数
| 名称 | 说明 | |
|---|---|---|
| .gif) | DataSetTestCondition | 初始化 DataSetTestCondition 类的新实例。 | 
页首
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | CanRaiseEvents | 获取一个指示组件是否可以引发事件的值。 (继承自 Component。) | 
| .gif) | Configuration | 获取或设置测试条件的配置信息。 | 
| .gif) | Container | 获取 IContainer,它包含 Component。 (继承自 Component。) | 
| .gif) | DesignMode | 获取一个值,用以指示 Component 当前是否处于设计模式。 (继承自 Component。) | 
| .gif) | Enabled | 获取或设置一个值,该值指示是否启用测试条件。 (继承自 TestCondition。) | 
| .gif) | Events | 获取附加到此 Component 的事件处理程序的列表。 (继承自 Component。) | 
| .gif) | Name | 获取或设置测试条件名称。 (继承自 TestCondition。) | 
| .gif) | Site | 获取或设置 Component 的 ISite。 (继承自 Component。) | 
页首
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | Assert | 验证输入参数。 (继承自 TestCondition。) | 
| .gif) | ConfigureExpectedDataSet | 由设计器调用以设置预期数据集。 | 
| .gif) | CreateObjRef | 安全关键。创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。 (继承自 MarshalByRefObject。) | 
| .gif) | Dispose() | 释放由 Component 使用的所有资源。 (继承自 Component。) | 
| .gif) | Dispose(Boolean) | 释放 Component 占用的非托管资源,也可以选择释放托管资源。 (继承自 Component。) | 
| .gif) .gif) | DumpDataSet | 诊断方法,会输出指定数据集的内容。 | 
| .gif) .gif) | DumpResults | 诊断方法,会输出预期测试结果、预期数据集、环境、实际测试结果和实际数据集。 | 
| .gif) | Equals | 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。) | 
| .gif) | Finalize | 在通过垃圾回收将 Component 回收之前,释放非托管资源并执行其他清理操作。 (继承自 Component。) | 
| .gif) .gif) | GetDataSet | 从测试结果中提取 DataSet。 | 
| .gif) | GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) | 
| .gif) | GetLifetimeService | 安全关键。检索控制此实例的生存期策略的当前生存期服务对象。 (继承自 MarshalByRefObject。) | 
| .gif) | GetService | 返回一个对象,该对象表示由 Component 或它的 Container 提供的服务。 (继承自 Component。) | 
| .gif) | GetType | 获取当前实例的 Type。 (继承自 Object。) | 
| .gif) | InitializeLifetimeService | 安全关键。获取控制此实例的生存期策略的生存期服务对象。 (继承自 MarshalByRefObject。) | 
| .gif) | MemberwiseClone() | 创建当前 Object 的浅表副本。 (继承自 Object。) | 
| .gif) | MemberwiseClone(Boolean) | 创建当前 MarshalByRefObject 对象的浅表副本。 (继承自 MarshalByRefObject。) | 
| .gif) | ToString | 返回包含 Component 的名称的 String(如果有)。不应重写此方法。 (继承自 Component。) | 
| .gif) .gif) | WriteLine | 诊断方法,通过使用 WriteLine 输出指定格式的字符串。 | 
页首
事件
| 名称 | 说明 | |
|---|---|---|
| .gif) | Disposed | 当通过调用 Dispose 方法释放组件时发生。 (继承自 Component。) | 
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。