Closed danielsaidi closed 4 years ago
When you call registerResult and executions(for:), you have to specify the function like this:
registerResult
executions(for:)
mock.registerResult(for: mock.functionWithIntResult) { arg1, arg2 in return arg2 }
It would be a lot cleaner if we could use the following syntax:
mock.registerResult(for: .functionWithIntResult) { arg1, arg2 in return arg2 }
I don't know if it's possible, but it would be great!
I won't focus on fixing this.
When you call
registerResult
andexecutions(for:)
, you have to specify the function like this:It would be a lot cleaner if we could use the following syntax:
I don't know if it's possible, but it would be great!