equals(_:)
Creates an expectation that requires the value to be a string that equals a specified string.
Declaration
static func equals(_ value: String) -> SelfParameters
- value:
The string to compare the value to.
Return Value
An expectation that compares a string value to value.
Discussion
The comparison is exact and case-sensitive. A value that isn’t a string doesn’t satisfy the expectation.