Partilhar via


Classe AfterTestCleanupEventArgs

Fornece dados para o evento AfterTestCleanup.

Hierarquia de herança

Object
  EventArgs
    Microsoft.VisualStudio.TestTools.UnitTesting.TestExecutionEventArgs
      Microsoft.VisualStudio.TestTools.UnitTesting.AfterTestCleanupEventArgs

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

Sintaxe

'Declaração
Public Class AfterTestCleanupEventArgs _
    Inherits TestExecutionEventArgs
public class AfterTestCleanupEventArgs : TestExecutionEventArgs
public ref class AfterTestCleanupEventArgs : public TestExecutionEventArgs
type AfterTestCleanupEventArgs =  
    class 
        inherit TestExecutionEventArgs 
    end
public class AfterTestCleanupEventArgs extends TestExecutionEventArgs

O tipo AfterTestCleanupEventArgs expõe os membros a seguir.

Propriedades

  Nome Descrição
Propriedade pública Instance Obtém a instância de classe de teste.Definido apenas em métodos de teste. (Herdado de TestExecutionEventArgs.)
Propriedade pública MethodInfo Obtém o método que é chamado. (Herdado de TestExecutionEventArgs.)
Propriedade pública TestContext Obtém o contexto do teste do usuário. (Herdado de TestExecutionEventArgs.)

Superior

Métodos

  Nome Descrição
Método público Equals Determines whether the specified object is equal to the current object. (Herdado de Object.)
Método protegido Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Herdado de Object.)
Método público GetHashCode Serves as the default hash function. (Herdado de Object.)
Método público GetType Gets the Type of the current instance. (Herdado de Object.)
Método protegido MemberwiseClone Creates a shallow copy of the current Object. (Herdado de Object.)
Método público ToString Returns a string that represents the current object. (Herdado de Object.)

Superior

Acesso thread-safe

Quaisquer membros estático (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.

Consulte também

Referência

Namespace Microsoft.VisualStudio.TestTools.UnitTesting