TestResultMessage Constructor (String, Guid, ITestElement, TestMessageKind)

Initializes a new instance of the TestResultMessage class by using the provided computer name, test run ID, test element, and test result kind.

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

Syntax

'Declaration
Public Sub New ( _
    computerName As String, _
    runId As Guid, _
    test As ITestElement, _
    kind As TestMessageKind _
)
public TestResultMessage(
    string computerName,
    Guid runId,
    ITestElement test,
    TestMessageKind kind
)
public:
TestResultMessage(
    String^ computerName, 
    Guid runId, 
    ITestElement^ test, 
    TestMessageKind kind
)
new : 
        computerName:string * 
        runId:Guid * 
        test:ITestElement * 
        kind:TestMessageKind -> TestResultMessage
public function TestResultMessage(
    computerName : String, 
    runId : Guid, 
    test : ITestElement, 
    kind : TestMessageKind
)

Parameters

  • computerName
    Type: String

    The name of the computer that executed the test run.

  • runId
    Type: Guid

    A Guid for the test run.

.NET Framework Security

See Also

Reference

TestResultMessage Class

TestResultMessage Overload

Microsoft.VisualStudio.TestTools.Common Namespace

ITestElement

TestMessageKind