TestScript.AssertReplyActivity 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 turn processing logic responds as expected.
public Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript AssertReplyActivity (string[] assertions, string description = default, uint timeout = 3000, string path = "", int line = 0);
member this.AssertReplyActivity : string[] * string * uint32 * string * int -> Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript
Public Function AssertReplyActivity (assertions As String(), Optional description As String = Nothing, Optional timeout As UInteger = 3000, Optional path As String = "", Optional line As Integer = 0) As TestScript
Parameters
- assertions
- String[]
assertions.
- 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.