<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTestExpectation/expectedFulfillmentCount",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTestExpectation(py)expectedFulfillmentCount"
  },
  "title" : "expectedFulfillmentCount"
}
-->

# expectedFulfillmentCount

The number of times [`fulfill()`](/documentation/XCTest/XCTestExpectation/fulfill()) must be called before the expectation is completely fulfilled.

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

## Discussion

The value of [`expectedFulfillmentCount`](/documentation/XCTest/XCTestExpectation/expectedFulfillmentCount) must be greater than 0. By default, expectations have an [`expectedFulfillmentCount`](/documentation/XCTest/XCTestExpectation/expectedFulfillmentCount) of 1.

> Note:
> The value of ``doc://com.apple.xctest/documentation/XCTest/XCTestExpectation/expectedFulfillmentCount`` is ignored when ``doc://com.apple.xctest/documentation/XCTest/XCTestExpectation/isInverted`` is <doc://com.apple.documentation/documentation/Swift/true>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)