---
title: "isSatisfied(by:result:)"
framework: appintentstesting
role: symbol
role_heading: Instance Method
platforms: [iOS 27.3+, iPadOS 27.3+, Mac Catalyst 27.3+, macOS 27.3+, tvOS 27.3+, visionOS 27.3+, watchOS 27.3+]
path: "appintentstesting/appintentexpectationproviding/issatisfied(by:result:)"
---

# isSatisfied(by:result:)

Returns a Boolean value that indicates whether an intent and its optional result meet the requirements of the expectation.

## Declaration

```swift
func isSatisfied(by intent: AnyAppIntent, result: ResolvedIntentResult? = nil) async throws -> Bool
```

## Parameters

- `intent`: The intent to check.
- `result`: The result of performing the intent. If you omit this argument, the method treats the intent’s result as absent.

## Return Value

Return Value true if the intent and its result satisfy the expectation; otherwise, false.

## Discussion

Discussion Use this method to check an intent, and the result you get from performing it, against the expectation. Checking an expectation doesn’t perform the intent. The method checks each parameter independently; a parameter that the method can’t evaluate, such as a value of the wrong type, isn’t satisfied and doesn’t stop the method from checking the others.
