表示数据库单元测试的基类。
命名空间: Microsoft.Data.Tools.Schema.Sql.UnitTesting
程序集: Microsoft.Data.Tools.Schema.Sql.UnitTesting(Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll 中)
继承层次结构
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Microsoft.Data.Tools.Schema.Sql.UnitTesting.SqlDatabaseTestClass
语法
[CLSCompliantAttribute(true)]
public class SqlDatabaseTestClass : Component
[CLSCompliantAttribute(true)]
public ref class SqlDatabaseTestClass : Component
[<CLSCompliantAttribute(true)>]
type SqlDatabaseTestClass =
class
inherit Component
end
<CLSCompliantAttribute(True)>
Public Class SqlDatabaseTestClass
Inherits Component
构造函数
名称 | 说明 | |
---|---|---|
![]() |
SqlDatabaseTestClass() | 初始化 SqlDatabaseTestClass 类的新实例。 |
属性
名称 | 说明 | |
---|---|---|
![]() |
CanRaiseEvents | (从 Component 继承。) |
![]() |
Container | (从 Component 继承。) |
![]() |
DesignMode | (从 Component 继承。) |
![]() |
Events | (从 Component 继承。) |
![]() |
ExecutionContext | 获取或设置用于执行与测试关联的 Transact-SQL 脚本的执行上下文。 |
![]() |
PrivilegedContext | 获取或设置用于验证测试执行的特权上下文。此外,此属性还验证和执行每个测试的预先测试和后期测试操作。 |
![]() |
Site | (从 Component 继承。) |
![]() |
TestCleanupAction | 获取或设置在运行每个测试之后将执行的 SqlDatabaseTestAction。 |
![]() |
TestContext | 获取或设置由测试基础结构使用的测试上下文。 |
![]() |
TestInitializeAction | 获取或设置执行每个测试前所执行的 SqlDatabaseTestAction。 |
![]() ![]() |
TestService | 获取或设置执行过程中测试使用的 SqlDatabaseTestService 类。 |
方法
名称 | 说明 | |
---|---|---|
![]() |
CleanupTest() | 由单元测试类调用。 |
![]() |
CreateObjRef(Type) | (从 MarshalByRefObject 继承。) |
![]() |
Dispose() | (从 Component 继承。) |
![]() |
Dispose(Boolean) | (从 Component 继承。) |
![]() |
Equals(Object) | (从 Object 继承。) |
![]() |
Finalize() | (从 Component 继承。) |
![]() |
GetHashCode() | (从 Object 继承。) |
![]() |
GetLifetimeService() | (从 MarshalByRefObject 继承。) |
![]() |
GetService(Type) | (从 Component 继承。) |
![]() |
GetType() | (从 Object 继承。) |
![]() |
InitializeLifetimeService() | (从 MarshalByRefObject 继承。) |
![]() |
InitializeTest() | 在测试初始化过程中,由生成的单元测试类调用。 |
![]() |
MemberwiseClone() | (从 Object 继承。) |
![]() |
MemberwiseClone(Boolean) | (从 MarshalByRefObject 继承。) |
![]() |
ToString() | (从 Component 继承。) |
事件
名称 | 说明 | |
---|---|---|
![]() |
Disposed | (从 Component 继承。) |
线程安全
此类型的任何公共静态(Visual Basic 中为 Shared)成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参阅
Microsoft.Data.Tools.Schema.Sql.UnitTesting 命名空间
返回页首