Klasa UnitTestAssertException
Jest to klasa bazowa dla jednostki badań wyjątki.
Hierarchia dziedziczenia
Object
Exception
Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestAssertException
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException
Microsoft.VisualStudio.TestTools.UnitTesting.AssertInconclusiveException
Microsoft.VisualStudio.TestTools.UnitTesting.InternalTestFailureException
Przestrzeń nazw: Microsoft.VisualStudio.TestTools.UnitTesting
Zestaw: Microsoft.VisualStudio.QualityTools.UnitTestFramework (w Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Składnia
'Deklaracja
<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
Typ UnitTestAssertException uwidacznia następujące elementy członkowskie.
Konstruktorzy
Nazwa | Opis | |
---|---|---|
![]() |
UnitTestAssertException() | Inicjuje nowe wystąpienie UnitTestAssertException klasy. |
![]() |
UnitTestAssertException(String) | Inicjuje nowe wystąpienie UnitTestAssertException klasy określony błąd. |
![]() |
UnitTestAssertException(SerializationInfo, StreamingContext) | Inicjuje nowe wystąpienie UnitTestAssertException klasy serializowane dane. |
![]() |
UnitTestAssertException(String, Exception) | Inicjuje nowe wystąpienie UnitTestAssertException klasy z określony komunikat i odniesienia do wyjątek wewnętrzny, który spowodował wyjątek. |
Początek
Właściwości
Nazwa | Opis | |
---|---|---|
![]() |
Data | Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Odziedziczone z Exception). |
![]() |
HelpLink | Gets or sets a link to the help file associated with this exception. (Odziedziczone z Exception). |
![]() |
HResult | Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Odziedziczone z Exception). |
![]() |
InnerException | Gets the Exception instance that caused the current exception. (Odziedziczone z Exception). |
![]() |
Message | Pobiera komunikat, który opisuje bieżący wyjątek. (Zastępuje Exception.Message). |
![]() |
Source | Gets or sets the name of the application or the object that causes the error. (Odziedziczone z Exception). |
![]() |
StackTrace | Gets a string representation of the immediate frames on the call stack. (Odziedziczone z Exception). |
![]() |
TargetSite | Gets the method that throws the current exception. (Odziedziczone z Exception). |
Początek
Metody
Nazwa | Opis | |
---|---|---|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Odziedziczone z Object). |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Odziedziczone z Object). |
![]() |
GetBaseException | When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Odziedziczone z Exception). |
![]() |
GetHashCode | Serves as the default hash function. (Odziedziczone z Object). |
![]() |
GetObjectData | Zestawy SerializationInfo z informacji o wyjątku. (Zastępuje Exception.GetObjectData(SerializationInfo, StreamingContext)). |
![]() |
GetType | Gets the runtime type of the current instance. (Odziedziczone z Exception). |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Odziedziczone z Object). |
![]() |
ToString | Creates and returns a string representation of the current exception. (Odziedziczone z Exception). |
Początek
Uwagi
Ta klasa jest możliwy do serializacji.
Bezpieczeństwo wątku
Wszystkie publiczne static (Shared w języku Visual Basic) elementy członkowskie tego typu są bezpieczne dla wątków. Wystąpienia elementów członkowskich nie dają gwarancji bezpieczeństwa wątków.
Zobacz też
Informacje
Przestrzeń nazw Microsoft.VisualStudio.TestTools.UnitTesting