Udostępnij za pośrednictwem


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
Właściwość publiczna Instance Pobiera wystąpienia klasy testowej.Zdefiniowane tylko w metodach przeprowadzania kontroli. (Odziedziczone z TestExecutionEventArgs).
Właściwość publiczna MethodInfo Pobiera metodę, która jest wywoływana. (Odziedziczone z TestExecutionEventArgs).
Właściwość publiczna TestContext Pobiera kontekście badania użytkownika. (Odziedziczone z TestExecutionEventArgs).

Początek

Metody

  Nazwa Opis
Metoda publiczna Equals Determines whether the specified object is equal to the current object. (Odziedziczone z Object).
Metoda chroniona Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Odziedziczone z Object).
Metoda publiczna GetHashCode Serves as the default hash function. (Odziedziczone z Object).
Metoda publiczna GetType Gets the Type of the current instance. (Odziedziczone z Object).
Metoda chroniona MemberwiseClone Creates a shallow copy of the current Object. (Odziedziczone z Object).
Metoda publiczna 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

BeforeTestInitialize