共用方式為


TestResultAggregation 建構函式 (String, Guid, ITestElement, TestOutcome, TestResultCounter, array<TestResult[])

使用提供的參數初始化 TestResultAggregation 類別的新執行個體。

命名空間:  Microsoft.VisualStudio.TestTools.Common
組件:  Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

語法

'宣告
Public Sub New ( _
    computerInfo As String, _
    runId As Guid, _
    test As ITestElement, _
    outcome As TestOutcome, _
    counters As TestResultCounter, _
    innerResults As TestResult() _
)
public TestResultAggregation(
    string computerInfo,
    Guid runId,
    ITestElement test,
    TestOutcome outcome,
    TestResultCounter counters,
    TestResult[] innerResults
)
public:
TestResultAggregation(
    String^ computerInfo, 
    Guid runId, 
    ITestElement^ test, 
    TestOutcome outcome, 
    TestResultCounter^ counters, 
    array<TestResult^>^ innerResults
)
new : 
        computerInfo:string * 
        runId:Guid * 
        test:ITestElement * 
        outcome:TestOutcome * 
        counters:TestResultCounter * 
        innerResults:TestResult[] -> TestResultAggregation
public function TestResultAggregation(
    computerInfo : String, 
    runId : Guid, 
    test : ITestElement, 
    outcome : TestOutcome, 
    counters : TestResultCounter, 
    innerResults : TestResult[]
)

參數

  • computerInfo
    類型:String

    測試執行所在電腦的名稱。

  • runId
    類型:Guid

    測試回合的 ID。

.NET Framework 安全性

請參閱

參考

TestResultAggregation 類別

TestResultAggregation 多載

Microsoft.VisualStudio.TestTools.Common 命名空間

ITestElement

TestOutcome

TestResultCounter

TestResult