init(description:)
Creates a new Xctestexpectation with the provided description.
Declaration
init(description expectationDescription: String)Parameters
- expectationDescription:
A string to display in the test log for this expectation, to help diagnose failures.
Discussion
To fulfill an expectation that was created with this initializer, call the expectation’s fulfill() method when the asynchronous task in your test has completed.