3
我正在使用TFS API 2010將若干錯誤消息插入到ITestActionResult
中。如果我這樣做與TestRunner的(添加評論),並用API讀取域(的ErrorMessage)字符串看起來是這樣的:"Line1\r\nLine1\r\n"...
ITestActionResult.ErrorMessage中的回車返回
如果我設置與TFS的API的ErrorMessage這樣的: actionResult.ErrorMessage = "Line1\r\nLine2\r\n"
,在"\r\n"
序列將被忽略! 我也嘗試Environment.NewLine
變量,這裏"\r\n"
序列將被視爲一個字符串,而不是一個轉義序列。
如果我使用TestRunner並以正確的方式推送返回,我怎樣才能在ITestActionResult.ErrorMessage
中添加新行?