RunResultAndStatistics.AddRunInfo Method

Definition

Adds a RunInfo object to the RunInfoList property value.

public:
 void AddRunInfo(System::String ^ textMessage, Exception ^ ex, System::String ^ computer, Microsoft::VisualStudio::TestTools::Common::TestOutcome outcome);
public void AddRunInfo (string textMessage, Exception ex, string computer, Microsoft.VisualStudio.TestTools.Common.TestOutcome outcome);
member this.AddRunInfo : string * Exception * string * Microsoft.VisualStudio.TestTools.Common.TestOutcome -> unit
Public Sub AddRunInfo (textMessage As String, ex As Exception, computer As String, outcome As TestOutcome)

Parameters

textMessage
String

A string that contains text information about the test run execution.

ex
Exception

An optional Exception.

computer
String

The name of the computer on which the test was run.

outcome
TestOutcome

A member of the TestOutcome enumeration, which indicates how the test run ended.

Applies to