Protocols
The following protocols are available globally.
-
Use for mocking instance methods, all methods in this protocol are implemented in extension and should not be implemented by conforming type
See moreDeclaration
Swift
public protocol MockedObject: class
-
Use for mocking static methods, all methods in this protocol are implemented in extension and should not be implemented by conforming type
See moreDeclaration
Swift
public protocol MockedType: class
-
Umbrella protocol for both type and object
Declaration
Swift
public protocol Mock: MockedType, MockedObject