---
title: fulfill()
framework: xctest
role: symbol
role_heading: Instance Method
path: xctest/xctestexpectation/fulfill()
---

# fulfill()

Marks the expectation as having been met.

## Declaration

```swift
func fulfill()
```

## Discussion

Discussion It is an error to call this method on an expectation that has already been fulfilled, or when the test case that vended the expectation has already completed.
