TestStateEvent 构造函数

定义

重载

TestStateEvent()

初始化 TestStateEvent 类的实例。

TestStateEvent(SerializationInfo, StreamingContext)

TestStateEvent使用序列化信息和上下文初始化类的实例。

TestStateEvent(Guid, Guid, TestState)

TestStateEvent使用提供的运行标识符、执行标识符和状态初始化类的实例。

TestStateEvent(Guid, Guid, TestState, DateTime)

TestStateEvent使用提供的运行标识符、执行标识符、状态和时间戳初始化类的实例。

TestStateEvent()

初始化 TestStateEvent 类的实例。

protected:
 TestStateEvent();
protected TestStateEvent ();
Protected Sub New ()

适用于

TestStateEvent(SerializationInfo, StreamingContext)

TestStateEvent使用序列化信息和上下文初始化类的实例。

protected:
 TestStateEvent(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TestStateEvent (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Common.TestStateEvent : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Common.TestStateEvent
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

一个 SerializationInfo 对象,该对象存储对类的实例进行序列化所需的数据 TestStateEvent

context
StreamingContext

一个 StreamingContext 对象,该对象描述给定流的源和目标。

适用于

TestStateEvent(Guid, Guid, TestState)

TestStateEvent使用提供的运行标识符、执行标识符和状态初始化类的实例。

public:
 TestStateEvent(Guid runId, Guid execId, Microsoft::VisualStudio::TestTools::Common::TestState newState);
public TestStateEvent (Guid runId, Guid execId, Microsoft.VisualStudio.TestTools.Common.TestState newState);
new Microsoft.VisualStudio.TestTools.Common.TestStateEvent : Guid * Guid * Microsoft.VisualStudio.TestTools.Common.TestState -> Microsoft.VisualStudio.TestTools.Common.TestStateEvent
Public Sub New (runId As Guid, execId As Guid, newState As TestState)

参数

runId
Guid

用于唯一标识测试运行的 Guid。

execId
Guid

唯一标识执行的 Guid。

newState
TestState

枚举的成员 TestState ,指示测试的状态。

适用于

TestStateEvent(Guid, Guid, TestState, DateTime)

TestStateEvent使用提供的运行标识符、执行标识符、状态和时间戳初始化类的实例。

public:
 TestStateEvent(Guid runId, Guid execId, Microsoft::VisualStudio::TestTools::Common::TestState newState, DateTime timestamp);
public TestStateEvent (Guid runId, Guid execId, Microsoft.VisualStudio.TestTools.Common.TestState newState, DateTime timestamp);
new Microsoft.VisualStudio.TestTools.Common.TestStateEvent : Guid * Guid * Microsoft.VisualStudio.TestTools.Common.TestState * DateTime -> Microsoft.VisualStudio.TestTools.Common.TestStateEvent
Public Sub New (runId As Guid, execId As Guid, newState As TestState, timestamp As DateTime)

参数

runId
Guid

一个 Guid 唯一标识测试运行的。

execId
Guid

一个 Guid 唯一标识该执行的。

newState
TestState

枚举的成员 TestState ,指示测试的状态。

timestamp
DateTime

测试运行状态发生更改的日期和时间。

适用于