Dobby
Dobby copied to clipboard
Void enhancements
Mock
s and Stub
s 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)