Share via


TextTestResultMessage Constructor (Guid, ITestElement, String)

Initializes a new instance of the TextTestResultMessage class by using the ID of the test run, the test element, and the message.

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

Syntax

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

Parameters

  • runId
    Type: Guid

    A Guid for the test run.

  • messageText
    Type: String

    Message that is used by the tests to send additional information.

.NET Framework Security

See Also

Reference

TextTestResultMessage Class

TextTestResultMessage Overload

Microsoft.VisualStudio.TestTools.Common Namespace

ITestElement