TextTestResultMessage 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
TextTestResultMessage(SerializationInfo, StreamingContext) |
Initializes a new instance of the TextTestResultMessage class from serialized XML data by using the provided serialization information and the streaming context. |
TextTestResultMessage(Guid, ITestElement, String) |
Initializes a new instance of the TextTestResultMessage class by using the ID of the test run, the test element, and the message. |
TextTestResultMessage(SerializationInfo, StreamingContext)
Initializes a new instance of the TextTestResultMessage class from serialized XML data by using the provided serialization information and the streaming context.
protected:
TextTestResultMessage(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TextTestResultMessage (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Common.TextTestResultMessage : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Common.TextTestResultMessage
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The SerializationInfo to populate with data.
- context
- StreamingContext
The destination of the serialized stream. For more information see, StreamingContext.
Applies to
TextTestResultMessage(Guid, ITestElement, String)
Initializes a new instance of the TextTestResultMessage class by using the ID of the test run, the test element, and the message.
public:
TextTestResultMessage(Guid runId, Microsoft::VisualStudio::TestTools::Common::ITestElement ^ test, System::String ^ messageText);
public TextTestResultMessage (Guid runId, Microsoft.VisualStudio.TestTools.Common.ITestElement test, string messageText);
new Microsoft.VisualStudio.TestTools.Common.TextTestResultMessage : Guid * Microsoft.VisualStudio.TestTools.Common.ITestElement * string -> Microsoft.VisualStudio.TestTools.Common.TextTestResultMessage
Public Sub New (runId As Guid, test As ITestElement, messageText As String)
Parameters
- test
- ITestElement
An ITestElement object.
- messageText
- String
Message that is used by the tests to send additional information.