Classe UnitTestAssertException
Esta é a classe base para exceções de teste da unidade.
Hierarquia de herança
Object
Exception
Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestAssertException
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException
Microsoft.VisualStudio.TestTools.UnitTesting.AssertInconclusiveException
Microsoft.VisualStudio.TestTools.UnitTesting.InternalTestFailureException
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (em Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Sintaxe
'Declaração
<SerializableAttribute> _
Public MustInherit Class UnitTestAssertException _
Inherits Exception
[SerializableAttribute]
public abstract class UnitTestAssertException : Exception
[SerializableAttribute]
public ref class UnitTestAssertException abstract : public Exception
[<AbstractClass>]
[<SerializableAttribute>]
type UnitTestAssertException =
class
inherit Exception
end
public abstract class UnitTestAssertException extends Exception
O tipo UnitTestAssertException expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
![]() |
UnitTestAssertException() | Inicializa uma nova instância da classe UnitTestAssertException. |
![]() |
UnitTestAssertException(String) | Inicializa uma nova instância da UnitTestAssertException classe com um erro especificado. |
![]() |
UnitTestAssertException(SerializationInfo, StreamingContext) | Inicializa uma nova instância da UnitTestAssertException classe com os dados serializados. |
![]() |
UnitTestAssertException(String, Exception) | Inicializa uma nova instância da UnitTestAssertException classe com uma mensagem de erro especificado e uma referência para a exceção interna que provocou essa exceção. |
Superior
Propriedades
Nome | Descrição | |
---|---|---|
![]() |
Data | Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Herdado de Exception.) |
![]() |
HelpLink | Gets or sets a link to the help file associated with this exception. (Herdado de Exception.) |
![]() |
HResult | Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Herdado de Exception.) |
![]() |
InnerException | Gets the Exception instance that caused the current exception. (Herdado de Exception.) |
![]() |
Message | Obtém uma mensagem que descreve a exceção atual. (Substitui Exception.Message.) |
![]() |
Source | Gets or sets the name of the application or the object that causes the error. (Herdado de Exception.) |
![]() |
StackTrace | Gets a string representation of the immediate frames on the call stack. (Herdado de Exception.) |
![]() |
TargetSite | Gets the method that throws the current exception. (Herdado de Exception.) |
Superior
Métodos
Nome | Descrição | |
---|---|---|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Herdado de Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Herdado de Object.) |
![]() |
GetBaseException | When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Herdado de Exception.) |
![]() |
GetHashCode | Serves as the default hash function. (Herdado de Object.) |
![]() |
GetObjectData | Conjuntos de SerializationInfo com informações sobre a exceção. (Substitui Exception.GetObjectData(SerializationInfo, StreamingContext).) |
![]() |
GetType | Gets the runtime type of the current instance. (Herdado de Exception.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Herdado de Object.) |
![]() |
ToString | Creates and returns a string representation of the current exception. (Herdado de Exception.) |
Superior
Comentários
Essa classe é serializável.
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.