Klasa BeforeTestInitializeEventArgs
Dostarcza dane dla BeforeTestInitialize zdarzenia.
Hierarchia dziedziczenia
Object
EventArgs
Microsoft.VisualStudio.TestTools.UnitTesting.TestExecutionEventArgs
Microsoft.VisualStudio.TestTools.UnitTesting.BeforeTestInitializeEventArgs
Przestrzeń nazw: Microsoft.VisualStudio.TestTools.UnitTesting
Zestaw: Microsoft.VisualStudio.QualityTools.UnitTestFramework (w Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Składnia
'Deklaracja
Public Class BeforeTestInitializeEventArgs _
Inherits TestExecutionEventArgs
public class BeforeTestInitializeEventArgs : TestExecutionEventArgs
public ref class BeforeTestInitializeEventArgs : public TestExecutionEventArgs
type BeforeTestInitializeEventArgs =
class
inherit TestExecutionEventArgs
end
public class BeforeTestInitializeEventArgs extends TestExecutionEventArgs
Typ BeforeTestInitializeEventArgs uwidacznia następujące elementy członkowskie.
Właściwości
Nazwa | Opis | |
---|---|---|
![]() |
Instance | Pobiera wystąpienia klasy testowej.Zdefiniowane tylko w metodach przeprowadzania kontroli. (Odziedziczone z TestExecutionEventArgs). |
![]() |
MethodInfo | Pobiera metodę, która jest wywoływana. (Odziedziczone z TestExecutionEventArgs). |
![]() |
TestContext | Pobiera kontekście badania użytkownika. (Odziedziczone z TestExecutionEventArgs). |
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). |
![]() |
GetHashCode | Serves as the default hash function. (Odziedziczone z Object). |
![]() |
GetType | Gets the Type of the current instance. (Odziedziczone z Object). |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Odziedziczone z Object). |
![]() |
ToString | Returns a string that represents the current object. (Odziedziczone z Object). |
Początek
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