Open felixvisee opened 8 years ago
Mocks and Stubs with Void interactions require some unnecessary typing, like:
Mock
Stub
Void
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:
MockType
StubType
where Interaction == Void
let stub: Stub<(), Int> = Stub() stub.returnValue(42)
Mock
s andStub
s withVoid
interactions require some unnecessary typing, like:We could add appropriate protocols,
MockType
andStubType
, and extensions forwhere Interaction == Void
to provide: