Share via


TestFlow.AssertReplyContains(String, String, UInt32) Method

Definition

Adds an assertion that the turn processing logic responds as expected.

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

Parameters

expected
String

The part of the expected text of a message from the bot.

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.

Applies to