AppEntityIdentifierExpectation
An expectation that checks whether an app entity is a specific instance by comparing its type and identifier.
Declaration
struct AppEntityIdentifierExpectationOverview
An identifier expectation checks which entity instance a value holds. You can pass it as an intent parameter expectation, as an intent result expectation, or wherever a property holds an entity.
You don’t create an identifier expectation directly. Call expectIdentifier(_:) instead:
let workCalendarExpectation = createEventIntentDefinition.expect(
calendar: calendarEntityDefinition.expectIdentifier(
"edea53fb-90b7-4481-afc7-d86e2dd0d27d"
)
)To also check the instance’s properties, call expect on it, which returns an AppEntityExpectation.