TestResultAggregation 建構函式 (ComputerInfo, Guid, ITestElement, TestOutcome, TestResultCounter, array<TestResult[], Int32)
注意:這個應用程式開發介面現在已經過時。
初始化 TestResultAggregation 類別的新執行個體。
命名空間: Microsoft.VisualStudio.TestTools.Common
組件: Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)
語法
'宣告
<ObsoleteAttribute("This constructor is obsolete. Use the constructor that takes string instead.")> _
Public Sub New ( _
computerInfo As ComputerInfo, _
runId As Guid, _
test As ITestElement, _
outcome As TestOutcome, _
counters As TestResultCounter, _
innerResults As TestResult(), _
currentTestIndex As Integer _
)
[ObsoleteAttribute("This constructor is obsolete. Use the constructor that takes string instead.")]
public TestResultAggregation(
ComputerInfo computerInfo,
Guid runId,
ITestElement test,
TestOutcome outcome,
TestResultCounter counters,
TestResult[] innerResults,
int currentTestIndex
)
[ObsoleteAttribute(L"This constructor is obsolete. Use the constructor that takes string instead.")]
public:
TestResultAggregation(
ComputerInfo^ computerInfo,
Guid runId,
ITestElement^ test,
TestOutcome outcome,
TestResultCounter^ counters,
array<TestResult^>^ innerResults,
int currentTestIndex
)
[<ObsoleteAttribute("This constructor is obsolete. Use the constructor that takes string instead.")>]
new :
computerInfo:ComputerInfo *
runId:Guid *
test:ITestElement *
outcome:TestOutcome *
counters:TestResultCounter *
innerResults:TestResult[] *
currentTestIndex:int -> TestResultAggregation
public function TestResultAggregation(
computerInfo : ComputerInfo,
runId : Guid,
test : ITestElement,
outcome : TestOutcome,
counters : TestResultCounter,
innerResults : TestResult[],
currentTestIndex : int
)
參數
- computerInfo
型別:Microsoft.VisualStudio.TestTools.Common.ComputerInfo
ComputerInfo 物件,包含執行測試之電腦的相關資訊。
- runId
型別:System.Guid
測試回合的 ID。
- outcome
型別:Microsoft.VisualStudio.TestTools.Common.TestOutcome
TestOutcome 物件。
- innerResults
型別:array<Microsoft.VisualStudio.TestTools.Common.TestResult[]
TestResult 物件的陣列。
- currentTestIndex
型別:System.Int32
int ,表示 innerResults 陣列中目前測試結果的索引。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。