RunResultAndStatistics.AddRunInfo Method
Adds a RunInfo object to the RunInfoList property value.
Namespace: Microsoft.VisualStudio.TestTools.Common
Assembly: Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
Public Sub AddRunInfo ( _
textMessage As String, _
ex As Exception, _
computer As String, _
outcome As TestOutcome _
)
public void AddRunInfo(
string textMessage,
Exception ex,
string computer,
TestOutcome outcome
)
public:
void AddRunInfo(
String^ textMessage,
Exception^ ex,
String^ computer,
TestOutcome outcome
)
member AddRunInfo :
textMessage:string *
ex:Exception *
computer:string *
outcome:TestOutcome -> unit
public function AddRunInfo(
textMessage : String,
ex : Exception,
computer : String,
outcome : TestOutcome
)
Parameters
- textMessage
Type: System.String
A string that contains text information about the test run execution.
- ex
Type: System.Exception
An optional Exception.
- computer
Type: System.String
The name of the computer on which the test was run.
- outcome
Type: Microsoft.VisualStudio.TestTools.Common.TestOutcome
A member of the TestOutcome enumeration, which indicates how the test run ended.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.