Edit

Share via


AssertNoActivity class

Basic assertion TestAction, which validates assertions against a reply activity.

Extends

Properties

$kind
description

Description of this assertion.

Methods

execute(TestAdapter, (context: TurnContext) => Promise<void>, Inspector)

Execute the test.

getConditionDescription()

Gets the text to assert for an activity.

Inherited Methods

configure(Record<string, unknown>)

Fluent method for configuring the object.

getConverter(string)

Property Details

$kind

static $kind: string

Property Value

string

description

Description of this assertion.

description: string

Property Value

string

Method Details

execute(TestAdapter, (context: TurnContext) => Promise<void>, Inspector)

Execute the test.

function execute(adapter: TestAdapter, _callback: (context: TurnContext) => Promise<void>, _inspector?: Inspector): Promise<void>

Parameters

adapter

TestAdapter

Adapter to execute against.

_callback

(context: TurnContext) => Promise<void>

Logic for the bot to use.

_inspector
Inspector

Inspector for dialog context.

Returns

Promise<void>

getConditionDescription()

Gets the text to assert for an activity.

function getConditionDescription(): string

Returns

string

Description.

Inherited Method Details

configure(Record<string, unknown>)

Fluent method for configuring the object.

function configure(config: Record<string, unknown>): this

Parameters

config

Record<string, unknown>

Configuration settings to apply.

Returns

this

The Configurable after the operation is complete.

Inherited From Configurable.configure

getConverter(string)

function getConverter(_property: string): Converter | ConverterFactory

Parameters

_property

string

The key of the conditional selector configuration.

Returns

Converter | ConverterFactory

The converter for the selector configuration.

Inherited From Configurable.getConverter