TestResult Constructor (ComputerInfo, Guid, ITestElement)
Note: This API is now obsolete.
Initializes a new instance of the TestResult class by using the provided computer information, test run ID, and test element.
Namespace: Microsoft.VisualStudio.TestTools.Common
Assembly: Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
<ObsoleteAttribute("This constructor is obsolete. Use the constructor that takes string instead.")> _
Public Sub New ( _
computerInfo As ComputerInfo, _
runId As Guid, _
test As ITestElement _
)
[ObsoleteAttribute("This constructor is obsolete. Use the constructor that takes string instead.")]
public TestResult(
ComputerInfo computerInfo,
Guid runId,
ITestElement test
)
[ObsoleteAttribute(L"This constructor is obsolete. Use the constructor that takes string instead.")]
public:
TestResult(
ComputerInfo^ computerInfo,
Guid runId,
ITestElement^ test
)
[<ObsoleteAttribute("This constructor is obsolete. Use the constructor that takes string instead.")>]
new :
computerInfo:ComputerInfo *
runId:Guid *
test:ITestElement -> TestResult
public function TestResult(
computerInfo : ComputerInfo,
runId : Guid,
test : ITestElement
)
Parameters
- computerInfo
Type: Microsoft.VisualStudio.TestTools.Common.ComputerInfo
A ComputerInfo object.
- runId
Type: System.Guid
A TestRun object.
- test
Type: Microsoft.VisualStudio.TestTools.Common.ITestElement
An ITestElement object.
.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.