Dobby icon indicating copy to clipboard operation
Dobby copied to clipboard

Void enhancements

Open felixvisee opened this issue 9 years ago • 0 comments

Mocks and Stubs with Void interactions require some unnecessary typing, like:

let stub: Stub<(), Int> = Stub()
stub.on(any(), returnValue: 42)

We could add appropriate protocols, MockType and StubType, and extensions for where Interaction == Void to provide:

let stub: Stub<(), Int> = Stub()
stub.returnValue(42)

felixvisee avatar Dec 05 '15 10:12 felixvisee