DatabaseTestClass.CleanupTest 方法

由单元测试类调用。

命名空间:  Microsoft.Data.Schema.UnitTesting
程序集:  Microsoft.Data.Schema.UnitTesting(在 Microsoft.Data.Schema.UnitTesting.dll 中)

语法

声明
Protected Sub CleanupTest
protected void CleanupTest()
protected:
void CleanupTest()
member CleanupTest : unit -> unit 
protected function CleanupTest()

备注

此方法首先释放现有执行上下文和特权上下文。 然后该方法会创建在运行 TestCleanupAction(如果已定义)时要使用的新的特权上下文。 最后,该方法将释放特权上下文。

.NET Framework 安全性

请参见

参考

DatabaseTestClass 类

Microsoft.Data.Schema.UnitTesting 命名空间

TestCleanupAction