IntentValueExpectationCallable
A value that you call with labeled value expectations to create an expectation on the corresponding parameters or properties.
Declaration
@dynamicCallable struct IntentValueExpectationCallable<Argument, Expectation> where Argument : SendableOverview
A callable lets you write an expectation as a single call, where each argument label names a parameter or property and each argument is the value expectation for it. The callable’s argument type determines which value expectations the arguments accept, and its expectation type is the expectation the call creates.
You don’t create a callable directly. Get one from the expect property of a definition, such as expect or expect, and call it like a method:
let createEventIntentDefinition = definitions.intents["CreateEventIntent"]
let expectation = createEventIntentDefinition.expect(
title: .contains("NASA")
)