Deprecated

At least once instance member called

  • Verify that given property getter or setter was called on mock object at least once.

    Declaration

    Swift

    @available(*, deprecated, message: "Use Verify instead!")
    public func VerifyProperty<T>(_ object: T, _ property: T.Verify, file: StaticString = #file, line: UInt = #line) where T : Mock

    Parameters

    object

    Mock instance

    property

    Property name, get or set with wrapped newValue (Parameter)

    file

    for XCTest print purposes

    line

    for XCTest print purposes

At least once static member called

  • Verify that given static property getter or setter was called on mock object at least once.

    Declaration

    Swift

    @available(*, deprecated, message: "Use Verify instead!")
    public func VerifyProperty<T>(_ object: T.Type, _ property: T.StaticVerify, file: StaticString = #file, line: UInt = #line) where T : StaticMock

    Parameters

    object

    Mock type

    property

    Property name, get or set with wrapped newValue (Parameter)

    file

    for XCTest print purposes

    line

    for XCTest print purposes

Instance member called with explicit count

  • Verify that given property get / set was called on mock object exact number of times.

    Declaration

    Swift

    @available(*, deprecated, message: "Use Verify instead!")
    public func VerifyProperty<T>(_ object: T, _ count: Count, _ property: T.Verify, file: StaticString = #file, line: UInt = #line) where T : Mock

    Parameters

    object

    Mock instance

    count

    Number of invocations

    method

    Property name, get or set with wrapped newValue (Parameter)

    file

    for XCTest print purposes

    line

    for XCTest print purposes

Static member called with explicit count

  • Verify that given static property get / set was called on mock type exact number of times.

    Declaration

    Swift

    @available(*, deprecated, message: "Use Verify instead!")
    public func VerifyProperty<T>(_ type: T.Type, _ count: Count, _ property: T.StaticVerify, file: StaticString = #file, line: UInt = #line) where T : StaticMock

    Parameters

    object

    Mock type

    count

    Number of invocations

    method

    Static property name, get or set with wrapped newValue (Parameter)

    file

    for XCTest print purposes

    line

    for XCTest print purposes