Udostępnij za pośrednictwem


TestStateEvent Class

Definition

Represents a notification record for a change in test state.

public ref class TestStateEvent : Microsoft::VisualStudio::TestTools::Common::TestMessage, System::Runtime::Serialization::ISerializable
[System.Serializable]
public class TestStateEvent : Microsoft.VisualStudio.TestTools.Common.TestMessage, System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type TestStateEvent = class
    inherit TestMessage
    interface ISerializable
Public Class TestStateEvent
Inherits TestMessage
Implements ISerializable
Inheritance
TestStateEvent
Attributes
Implements

Constructors

TestStateEvent()

Initializes an instance of the TestStateEvent class.

TestStateEvent(Guid, Guid, TestState, DateTime)

Initializes an instance of the TestStateEvent class by using the provided run identifier, execution identifier, state, and time stamp.

TestStateEvent(Guid, Guid, TestState)

Initializes an instance of the TestStateEvent class by using the provided run identifier, execution identifier, and state.

TestStateEvent(SerializationInfo, StreamingContext)

Initializes an instance of the TestStateEvent class by using the serialization information and context.

Properties

ExecId

Gets a Guid that uniquely identifies the execution process.

NewState

Gets the new setting for the test state.

RunId

Gets a Guid that uniquely identifies the test run.

Timestamp

Gets the date and time when the test state was changed.

Methods

GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo object with the data that is required to serialize the target object.

IsValid()

Returns a value that indicates whether the event has a valid RunId and a valid setting for NewState setting.

ToString()

Returns a string that contains the computer name, the RunId, and the NewState.

Applies to