func disambiguate(with: ReturnType .Type) -> Self
Used to disambiguate the
ReturnType
.func will(file: StaticString , line: UInt, ([Any]) throws -> ReturnType )
Registers a block to excecute.
func willDoNothing ()
Registers an empty block to excecute.
Available when
ReturnType
is Void
.func willReturn (file: StaticString , line: UInt, ReturnType )
Registers a return value.
func willReturn (file: StaticString , line: UInt, ReturnType ...)
Registers return values.
func willThrow (file: StaticString , line: UInt, Error)
Registers an error.
func willThrow (file: StaticString , line: UInt, Error...)
Registers errors.