RunResultAndStatistics.AddRunInfo 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 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
一个字符串,其中包含有关测试运行执行的文本信息。
- computer
- String
在其上运行测试的计算机的名称。
- outcome
- TestOutcome
枚举的成员 TestOutcome ,指示测试运行如何结束。