Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkenso authored Mar 31, 2020
1 parent a9912bf commit bd568bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ Matcher | Description | Example
.strCaseEqual | actual == value (case insensitive) | .strCaseEqual("sTrInG")
.strCaseNotEqual | actual != value (case insensitive) | .strCaseNotEqual("sTrInG")

##### Args == Result
Matcher | Description | Example
--- | --- | ---
.success<Success, Failure> | If result is success, matches success value using MatcherType<Success>. False if Result.failure | // let mock = MockMethod<Result<Int, Error>, Void>()<br> .success(.equal(10))
.failure<Success, Failure> | If result is failure, matches error using MatcherType<Failure>. False if Result.success | .failure(.any)

##### Args: Collection
```
let mock = MockMethod<[Int], Void>()
Expand Down

0 comments on commit bd568bf

Please sign in to comment.