共用方式為


TestFlow.AssertReplyOneOf(String[], String, UInt32) 方法

定義

新增一個判斷提示,指出 Bot 的回應包含在一組可接受的回應內。

public Microsoft.Bot.Builder.Adapters.TestFlow AssertReplyOneOf(string[] candidates, string description = default, uint timeout = 3000);
member this.AssertReplyOneOf : string[] * string * uint32 -> Microsoft.Bot.Builder.Adapters.TestFlow
Public Function AssertReplyOneOf (candidates As String(), Optional description As String = Nothing, Optional timeout As UInteger = 3000) As TestFlow

參數

candidates
String[]

可接受的訊息集。

description
String

如果實際回應未如預期般傳送的訊息。

timeout
UInt32

回應預期在毫秒內的時間量。

傳回

將這個判斷提示附加至模型交換的新 TestFlow 物件。

例外狀況

Bot 未如預期般回應。

備註

這個方法不會修改原始 TestFlow 物件。

適用於