예제 #1
0
 /// <summary>
 /// Adds an assertion that the turn processing logic responds as expected.
 /// </summary>
 /// <param name="expected">The expected text of a message from the bot.</param>
 /// <param name="description">A message to send if the actual response is not as expected.</param>
 /// <param name="timeout">The amount of time in milliseconds within which a response is expected.</param>
 /// <returns>A new <see cref="TestFlow"/> object that appends this assertion to the modeled exchange.</returns>
 /// <remarks>This method does not modify the original <see cref="TestFlow"/> object.</remarks>
 /// <exception cref="Exception">The bot did not respond as expected.</exception>
 public TestFlow AssertReply(string expected, string description = null, uint timeout = 3000)
 {
     return(AssertReply(_adapter.MakeActivity(expected), description ?? expected, timeout));
 }
예제 #2
0
 /// <summary>
 /// Assert that reply is expected text
 /// </summary>
 /// <param name="expected"></param>
 /// <param name="description"></param>
 /// <param name="timeout"></param>
 /// <returns></returns>
 public TestFlow AssertReply(string expected, string description = null, UInt32 timeout = 3000)
 {
     return AssertReply(_adapter.MakeActivity(expected), description, timeout);
 }