TestFlow.AssertReplyOneOf(String[], String, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an assertion that the bot's response is contained within a set of acceptable responses.
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
Parameters
- candidates
- String[]
The set of acceptable messages.
- description
- String
A message to send if the actual response is not as expected.
- timeout
- UInt32
The amount of time in milliseconds within which a response is expected.
Returns
A new TestFlow object that appends this assertion to the modeled exchange.
Exceptions
The bot did not respond as expected.
Remarks
This method does not modify the original TestFlow object.