RunResultAndStatistics.AddRunInfo 方法

定义

RunInfo 对象添加到 RunInfoList 属性值。

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)

参数

textMessage
String

一个字符串,其中包含有关测试运行执行的文本信息。

ex
Exception

一个可选的 Exception

computer
String

在其上运行测试的计算机的名称。

outcome
TestOutcome

枚举的成员 TestOutcome ,指示测试运行如何结束。

适用于