expect
A callable that creates an entity expectation for the current instance from value expectations for its properties.
Declaration
var expect: IntentValueExpectationCallable<any IntentValueExpectation, AppEntityExpectation> { get }Discussion
Call expect with a labeled argument for each property you want to check. Each label names a property, and each argument is the value expectation for it. The expectation doesn’t check properties you omit or pass nil for. Pass isNil to expect a property to be absent. For example:
let expectation = calendarEntityDefinition
.expectIdentifier("edea53fb-90b7-4481-afc7-d86e2dd0d27d")
.expect(title: .equals("Work"))