---
title: expectedFulfillmentCount
framework: XCTest
role: symbol
role_heading: Instance Property
platforms: []
path: xctest/xctestexpectation/2806572-expectedfulfillmentcount
---

# expectedFulfillmentCount

The number of times [fulfill()](fulfill().md) must be called before the expectation is completely fulfilled.

## Declaration

```swift
var expectedFulfillmentCount: Int { get set }
```

## Discussion

The value of [expectedFulfillmentCount](expectedfulfillmentcount.md) must be greater than 0. By default, expectations have an [expectedFulfillmentCount](expectedfulfillmentcount.md) of 1.

> **note:** The value of [expectedFulfillmentCount](expectedfulfillmentcount.md) is ignored when [isInverted](isinverted.md) is [true](../../swift/true.md).

## See Also

### Fulfillment Count

- [assertForOverFulfill](assertforoverfulfill.md)
