共用方式為


TestExecution.AfterTestCleanup 事件

發生在測試完成清除後。

命名空間:  Microsoft.VisualStudio.TestTools.UnitTesting
組件:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (在 Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 中)

語法

'宣告
Public MustOverride Event AfterTestCleanup As EventHandler(Of AfterTestCleanupEventArgs)
public abstract event EventHandler<AfterTestCleanupEventArgs> AfterTestCleanup
public:
virtual  event EventHandler<AfterTestCleanupEventArgs^>^ AfterTestCleanup {
    void add (EventHandler<AfterTestCleanupEventArgs^>^ value);
    void remove (EventHandler<AfterTestCleanupEventArgs^>^ value);
}
abstract AfterTestCleanup : IEvent<EventHandler<AfterTestCleanupEventArgs>,
    AfterTestCleanupEventArgs>
JScript 不支援事件。

.NET Framework 安全性

請參閱

參考

TestExecution 類別

Microsoft.VisualStudio.TestTools.UnitTesting 命名空間