TestExecution.OnTestStopping Event

Occurs when a test is stopped before it is completed.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public MustOverride Event OnTestStopping As EventHandler(Of OnTestStoppingEventArgs)
public abstract event EventHandler<OnTestStoppingEventArgs> OnTestStopping
public:
virtual   event EventHandler<OnTestStoppingEventArgs^>^ OnTestStopping {
    void add (EventHandler<OnTestStoppingEventArgs^>^ value);
    void remove (EventHandler<OnTestStoppingEventArgs^>^ value);
}
abstract OnTestStopping : IEvent<EventHandler<OnTestStoppingEventArgs>,
    OnTestStoppingEventArgs>
JScript does not support events.

.NET Framework Security

See Also

Reference

TestExecution Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace