Share via


TestScript.AssertReplyContains(String, String, UInt32, String, Int32) Method

Definition

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

public Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript AssertReplyContains (string expected, string description = default, uint timeout = 3000, string path = "", int line = 0);
member this.AssertReplyContains : string * string * uint32 * string * int -> Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript
Public Function AssertReplyContains (expected As String, Optional description As String = Nothing, Optional timeout As UInteger = 3000, Optional path As String = "", Optional line As Integer = 0) As TestScript

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.

path
String

path.

line
Int32

line number.

Returns

A new TestScript 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 TestScript object.

Applies to