Freigeben über


ITestElement.AssignIsRunnable-Methode

Weist Werte für die Eigenschaften IsRunnable und ErrorMessageForNonRunnable zu.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
Sub AssignIsRunnable ( _
    runnable As Boolean, _
    errorMessage As String _
)
void AssignIsRunnable(
    bool runnable,
    string errorMessage
)
void AssignIsRunnable(
    bool runnable, 
    String^ errorMessage
)
abstract AssignIsRunnable : 
        runnable:bool * 
        errorMessage:string -> unit
function AssignIsRunnable(
    runnable : boolean, 
    errorMessage : String
)

Parameter

  • runnable
    Typ: Boolean

    true, wenn das Element ausgeführt werden kann, andernfalls false.

  • errorMessage
    Typ: String

    Eine Meldung für das Testframework, das verwendet werden soll, wenn das Testelement nicht ausführbar ist.

.NET Framework-Sicherheit

Siehe auch

Referenz

ITestElement Schnittstelle

Microsoft.VisualStudio.TestTools.Common-Namespace

IsRunnable

ErrorMessageForNonRunnable