TestResultAggregation - конструктор (ComputerInfo, Guid, ITestElement, TestOutcome, TestResultCounter, array<TestResult[], Int32)
Примечание. Данный API устарел.
Инициализирует новый экземпляр класса 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
Тип: GuidИД тестового запуска.
test
Тип: Microsoft.VisualStudio.TestTools.Common.ITestElementОбъект ITestElement.
outcome
Тип: Microsoft.VisualStudio.TestTools.Common.TestOutcomeОбъект TestOutcome.
counters
Тип: Microsoft.VisualStudio.TestTools.Common.TestResultCounterОбъект TestResultCounter.
innerResults
Тип: array<Microsoft.VisualStudio.TestTools.Common.TestResult[]Массив объектов TestResult.
currentTestIndex
Тип: Int32Значение int, представляющее индекс текущего результата теста в массиве innerResults.
Безопасность платформы .NET Framework
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Для получения дополнительной информации см. Использование библиотек из не вполне надежного кода.
См. также
Ссылки
TestResultAggregation - перегрузка