TextTestResultMessage Constructors

Definition

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

runId
Guid

A Guid for the test run.

test
ITestElement

An ITestElement object.

messageText
String

Message that is used by the tests to send additional information.

Applies to