MatcherResult
public struct MatcherResult
The value that a Matcher returns to describe if the given (actual) value matches the matcher.
-
Status indicates if the matcher matches, does not match, or fails.
Declaration
Swift
public var status: MatcherStatus
-
The error message that can be displayed if it does not match
Declaration
Swift
public var message: ExpectationMessage
-
Constructs a new MatcherResult with a given status and error message
Declaration
Swift
public init(status: MatcherStatus, message: ExpectationMessage)
-
Shorthand to MatcherResult(status: MatcherStatus(bool: bool), message: message)
Declaration
Swift
public init(bool: Bool, message: ExpectationMessage)
-
Converts the result to a boolean based on what the expectation intended
Declaration
Swift
public func toBoolean(expectation style: ExpectationStyle) -> Bool
-
Undocumented
Declaration
Swift
public func toObjectiveC() -> NMBMatcherResult