TestResultAggregation Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TestResultAggregation()
Initializes a new instance of the TestResultAggregation class.
protected:
TestResultAggregation();
protected TestResultAggregation ();
Protected Sub New ()
Applies to
TestResultAggregation(TestResult)
Initializes a new instance of the TestResultAggregation class by using the provided test result.
public:
TestResultAggregation(Microsoft::VisualStudio::TestTools::Common::TestResult ^ result);
public TestResultAggregation (Microsoft.VisualStudio.TestTools.Common.TestResult result);
new Microsoft.VisualStudio.TestTools.Common.TestResultAggregation : Microsoft.VisualStudio.TestTools.Common.TestResult -> Microsoft.VisualStudio.TestTools.Common.TestResultAggregation
Public Sub New (result As TestResult)
Parameters
- result
- Microsoft.VisualStudio.TestTools.Common.TestResult
A Microsoft.VisualStudio.TestTools.Common.TestResult object.
Applies to
TestResultAggregation(TestResultAggregation)
Initializes a new instance of the TestResultAggregation class by using the provided test result aggregation.
protected:
TestResultAggregation(Microsoft::VisualStudio::TestTools::Common::TestResultAggregation ^ other);
protected TestResultAggregation (Microsoft.VisualStudio.TestTools.Common.TestResultAggregation other);
new Microsoft.VisualStudio.TestTools.Common.TestResultAggregation : Microsoft.VisualStudio.TestTools.Common.TestResultAggregation -> Microsoft.VisualStudio.TestTools.Common.TestResultAggregation
Protected Sub New (other As TestResultAggregation)
Parameters
- other
- TestResultAggregation
A TestResultAggregation object.
Applies to
TestResultAggregation(SerializationInfo, StreamingContext)
Initializes a new instance of the TestResultAggregation class from XML serialization.
protected:
TestResultAggregation(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TestResultAggregation (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Common.TestResultAggregation : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Common.TestResultAggregation
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
A SerializationInfo object.
- context
- StreamingContext
A StreamingContext object.
Applies to
TestResultAggregation(ComputerInfo, Guid, ITestElement)
Caution
This constructor is obsolete. Use the constructor that takes string instead.
Initializes a new instance of the TestResultAggregation class by using the provided computer information, run ID, and test element.
public:
TestResultAggregation(Microsoft::VisualStudio::TestTools::Common::ComputerInfo ^ computerInfo, Guid runId, Microsoft::VisualStudio::TestTools::Common::ITestElement ^ test);
[System.Obsolete("This constructor is obsolete. Use the constructor that takes string instead.")]
public TestResultAggregation (Microsoft.VisualStudio.TestTools.Common.ComputerInfo computerInfo, Guid runId, Microsoft.VisualStudio.TestTools.Common.ITestElement test);
[<System.Obsolete("This constructor is obsolete. Use the constructor that takes string instead.")>]
new Microsoft.VisualStudio.TestTools.Common.TestResultAggregation : Microsoft.VisualStudio.TestTools.Common.ComputerInfo * Guid * Microsoft.VisualStudio.TestTools.Common.ITestElement -> Microsoft.VisualStudio.TestTools.Common.TestResultAggregation
Public Sub New (computerInfo As ComputerInfo, runId As Guid, test As ITestElement)
Parameters
- computerInfo
- ComputerInfo
A ComputerInfo object that has information about the computer that ran the test.
- runId
- Guid
The ID for the test run.
- test
- ITestElement
An ITestElement object.
- Attributes
Applies to
TestResultAggregation(String, Guid, ITestElement)
Initializes a new instance of the TestResultAggregation class by using the provided computer information, test run ID, and test.
public:
TestResultAggregation(System::String ^ computerInfo, Guid runId, Microsoft::VisualStudio::TestTools::Common::ITestElement ^ test);
public TestResultAggregation (string computerInfo, Guid runId, Microsoft.VisualStudio.TestTools.Common.ITestElement test);
new Microsoft.VisualStudio.TestTools.Common.TestResultAggregation : string * Guid * Microsoft.VisualStudio.TestTools.Common.ITestElement -> Microsoft.VisualStudio.TestTools.Common.TestResultAggregation
Public Sub New (computerInfo As String, runId As Guid, test As ITestElement)
Parameters
- computerInfo
- String
The name of the machine where the tests were run.
- runId
- Guid
The ID for the test run.
- test
- ITestElement
An ITestElement object.
Applies to
TestResultAggregation(ComputerInfo, Guid, ITestElement, TestOutcome, TestResultCounter, TestResult[])
Caution
This constructor is obsolete. Use the constructor that takes string instead.
Initializes a new instance of the TestResultAggregation class.
public:
TestResultAggregation(Microsoft::VisualStudio::TestTools::Common::ComputerInfo ^ computerInfo, Guid runId, Microsoft::VisualStudio::TestTools::Common::ITestElement ^ test, Microsoft::VisualStudio::TestTools::Common::TestOutcome outcome, Microsoft::VisualStudio::TestTools::Common::TestResultCounter ^ counters, cli::array <Microsoft::VisualStudio::TestTools::Common::TestResult ^> ^ innerResults);
[System.Obsolete("This constructor is obsolete. Use the constructor that takes string instead.")]
public TestResultAggregation (Microsoft.VisualStudio.TestTools.Common.ComputerInfo computerInfo, Guid runId, Microsoft.VisualStudio.TestTools.Common.ITestElement test, Microsoft.VisualStudio.TestTools.Common.TestOutcome outcome, Microsoft.VisualStudio.TestTools.Common.TestResultCounter counters, Microsoft.VisualStudio.TestTools.Common.TestResult[] innerResults);
[<System.Obsolete("This constructor is obsolete. Use the constructor that takes string instead.")>]
new Microsoft.VisualStudio.TestTools.Common.TestResultAggregation : Microsoft.VisualStudio.TestTools.Common.ComputerInfo * Guid * Microsoft.VisualStudio.TestTools.Common.ITestElement * Microsoft.VisualStudio.TestTools.Common.TestOutcome * Microsoft.VisualStudio.TestTools.Common.TestResultCounter * Microsoft.VisualStudio.TestTools.Common.TestResult[] -> Microsoft.VisualStudio.TestTools.Common.TestResultAggregation
Public Sub New (computerInfo As ComputerInfo, runId As Guid, test As ITestElement, outcome As TestOutcome, counters As TestResultCounter, innerResults As TestResult())
Parameters
- computerInfo
- ComputerInfo
A ComputerInfo object that has information about the computer that ran the test.
- runId
- Guid
The ID for the test run.
- test
- ITestElement
An ITestElement object.
- outcome
- TestOutcome
A TestOutcome object.
- counters
- TestResultCounter
A TestResultCounter object.
- innerResults
- Microsoft.VisualStudio.TestTools.Common.TestResult[]
An array of Microsoft.VisualStudio.TestTools.Common.TestResult objects.
- Attributes
Applies to
TestResultAggregation(String, Guid, ITestElement, TestOutcome, TestResultCounter, TestResult[])
Initializes a new instance of the TestResultAggregation class using the provided parameters.
public:
TestResultAggregation(System::String ^ computerInfo, Guid runId, Microsoft::VisualStudio::TestTools::Common::ITestElement ^ test, Microsoft::VisualStudio::TestTools::Common::TestOutcome outcome, Microsoft::VisualStudio::TestTools::Common::TestResultCounter ^ counters, cli::array <Microsoft::VisualStudio::TestTools::Common::TestResult ^> ^ innerResults);
public TestResultAggregation (string computerInfo, Guid runId, Microsoft.VisualStudio.TestTools.Common.ITestElement test, Microsoft.VisualStudio.TestTools.Common.TestOutcome outcome, Microsoft.VisualStudio.TestTools.Common.TestResultCounter counters, Microsoft.VisualStudio.TestTools.Common.TestResult[] innerResults);
new Microsoft.VisualStudio.TestTools.Common.TestResultAggregation : string * Guid * Microsoft.VisualStudio.TestTools.Common.ITestElement * Microsoft.VisualStudio.TestTools.Common.TestOutcome * Microsoft.VisualStudio.TestTools.Common.TestResultCounter * Microsoft.VisualStudio.TestTools.Common.TestResult[] -> Microsoft.VisualStudio.TestTools.Common.TestResultAggregation
Public Sub New (computerInfo As String, runId As Guid, test As ITestElement, outcome As TestOutcome, counters As TestResultCounter, innerResults As TestResult())
Parameters
- computerInfo
- String
The name of the machine where the tests were run.
- runId
- Guid
The ID for the test run.
- test
- ITestElement
An ITestElement object.
- outcome
- TestOutcome
A TestOutcome object.
- counters
- TestResultCounter
A TestResultCounter object.
- innerResults
- Microsoft.VisualStudio.TestTools.Common.TestResult[]
An array of Microsoft.VisualStudio.TestTools.Common.TestResult objects.
Applies to
TestResultAggregation(ComputerInfo, Guid, ITestElement, TestOutcome, TestResultCounter, TestResult[], Int32)
Caution
This constructor is obsolete. Use the constructor that takes string instead.
Initializes a new instance of the TestResultAggregation class.
public:
TestResultAggregation(Microsoft::VisualStudio::TestTools::Common::ComputerInfo ^ computerInfo, Guid runId, Microsoft::VisualStudio::TestTools::Common::ITestElement ^ test, Microsoft::VisualStudio::TestTools::Common::TestOutcome outcome, Microsoft::VisualStudio::TestTools::Common::TestResultCounter ^ counters, cli::array <Microsoft::VisualStudio::TestTools::Common::TestResult ^> ^ innerResults, int currentTestIndex);
[System.Obsolete("This constructor is obsolete. Use the constructor that takes string instead.")]
public TestResultAggregation (Microsoft.VisualStudio.TestTools.Common.ComputerInfo computerInfo, Guid runId, Microsoft.VisualStudio.TestTools.Common.ITestElement test, Microsoft.VisualStudio.TestTools.Common.TestOutcome outcome, Microsoft.VisualStudio.TestTools.Common.TestResultCounter counters, Microsoft.VisualStudio.TestTools.Common.TestResult[] innerResults, int currentTestIndex);
[<System.Obsolete("This constructor is obsolete. Use the constructor that takes string instead.")>]
new Microsoft.VisualStudio.TestTools.Common.TestResultAggregation : Microsoft.VisualStudio.TestTools.Common.ComputerInfo * Guid * Microsoft.VisualStudio.TestTools.Common.ITestElement * Microsoft.VisualStudio.TestTools.Common.TestOutcome * Microsoft.VisualStudio.TestTools.Common.TestResultCounter * Microsoft.VisualStudio.TestTools.Common.TestResult[] * int -> Microsoft.VisualStudio.TestTools.Common.TestResultAggregation
Public Sub New (computerInfo As ComputerInfo, runId As Guid, test As ITestElement, outcome As TestOutcome, counters As TestResultCounter, innerResults As TestResult(), currentTestIndex As Integer)
Parameters
- computerInfo
- ComputerInfo
A ComputerInfo object that has information about the computer that ran the test.
- runId
- Guid
The ID for the test run.
- test
- ITestElement
An ITestElement object.
- outcome
- TestOutcome
A TestOutcome object.
- counters
- TestResultCounter
A TestResultCounter object.
- innerResults
- Microsoft.VisualStudio.TestTools.Common.TestResult[]
An array of Microsoft.VisualStudio.TestTools.Common.TestResult objects.
- currentTestIndex
- Int32
An int that represents the index of the current test result in the innerResults
array.
- Attributes
Applies to
TestResultAggregation(String, Guid, ITestElement, TestOutcome, TestResultCounter, TestResult[], Int32)
Initializes a new instance of the TestResultAggregation class.
public:
TestResultAggregation(System::String ^ computerInfo, Guid runId, Microsoft::VisualStudio::TestTools::Common::ITestElement ^ test, Microsoft::VisualStudio::TestTools::Common::TestOutcome outcome, Microsoft::VisualStudio::TestTools::Common::TestResultCounter ^ counters, cli::array <Microsoft::VisualStudio::TestTools::Common::TestResult ^> ^ innerResults, int currentTestIndex);
public TestResultAggregation (string computerInfo, Guid runId, Microsoft.VisualStudio.TestTools.Common.ITestElement test, Microsoft.VisualStudio.TestTools.Common.TestOutcome outcome, Microsoft.VisualStudio.TestTools.Common.TestResultCounter counters, Microsoft.VisualStudio.TestTools.Common.TestResult[] innerResults, int currentTestIndex);
new Microsoft.VisualStudio.TestTools.Common.TestResultAggregation : string * Guid * Microsoft.VisualStudio.TestTools.Common.ITestElement * Microsoft.VisualStudio.TestTools.Common.TestOutcome * Microsoft.VisualStudio.TestTools.Common.TestResultCounter * Microsoft.VisualStudio.TestTools.Common.TestResult[] * int -> Microsoft.VisualStudio.TestTools.Common.TestResultAggregation
Public Sub New (computerInfo As String, runId As Guid, test As ITestElement, outcome As TestOutcome, counters As TestResultCounter, innerResults As TestResult(), currentTestIndex As Integer)
Parameters
- computerInfo
- String
The name of the machine where the tests were run.
- runId
- Guid
The ID for the test run.
- test
- ITestElement
An ITestElement object.
- outcome
- TestOutcome
A TestOutcome object.
- counters
- TestResultCounter
A TestResultCounter object.
- innerResults
- Microsoft.VisualStudio.TestTools.Common.TestResult[]
An array of Microsoft.VisualStudio.TestTools.Common.TestResult objects.
- currentTestIndex
- Int32
An int that represents the index of the current test result in the innerResults
array.