你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
命名空间:Microsoft.Azure.Workflows.UnitTesting.Definitions
此类表示单元测试执行期间标准逻辑应用工作流中触发器执行的结果。 该类还提供触发器作的特定功能。
用法
// Check trigger status and code
Assert.AreEqual(expected: "200", actual: testFlowRun.Trigger.Code);
Assert.AreEqual(expected: TestWorkflowStatus.Succeeded, actual: testFlowRun.Trigger.Status);
// Check trigger output value
Assert.AreEqual(expected: "Test", actual: testFlowRun.Trigger.Outputs["outputParam"].Value<string>());
// Check trigger error
Assert.IsNull(testFlowRun.Trigger.Error);
性能
名称 | DESCRIPTION | 类型 | 必选 |
---|---|---|---|
名称 | 触发器名称 | 字符串 | 是的 |
输入 | 触发器执行输入 | JToken | 否 |
输出 | 触发器执行输出 | JToken | 否 |
代码 | 触发器状态代码 | 字符串 | 否 |
状态 | 触发器状态 | TestWorkflowStatus | 是的 |
错误 | 触发器错误 | TestErrorInfo | 否 |
相关内容
- ActionMock 类定义
- TriggerMock 类定义
- TestActionExecutionContext 类定义
- TestExecutionContext 类定义
- TestIterationItem 类定义
- TestWorkflowRun 类定义
- TestErrorInfo 类定义
- TestErrorResponseAdditionalInfo 类定义
- TestWorkflowOutputParameter 类定义
- TestWorkflowRunActionRepetitionResult 类定义
- TestWorkflowRunActionResult 类定义
- TestWorkflowStatus 枚举定义
- UnitTestExecutor 类定义