Skip to content

MockFunctionCall

[<Interface>]
type MockFunctionCall<'F, 'ReturnType, 'Args> =
    abstract member arguments: 'Args with get, set
    abstract member error: obj with get, set
    abstract member result: 'ReturnType option with get, set
    abstract member stack: exn with get, set
    abstract member target: obj with get, set
    abstract member this: obj with get, set
    static member Create (arguments: 'Args, error: obj, stack: exn, target: obj, this: obj, ?result: 'ReturnType) : MockFunctionCall<'F,'ReturnType,'Args>
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Properties

abstract member arguments: 'Args with get, set

An array of the arguments passed to the mock function.

abstract member error: obj with get, set

If the mocked function threw then this property contains the thrown value.

abstract member result: 'ReturnType option with get, set

The value returned by the mocked function.

If the mocked function threw, it will be undefined.

abstract member stack: exn with get, set

An Error object whose stack can be used to determine the callsite of the mocked function invocation.

abstract member target: obj with get, set

If the mocked function is a constructor, this field contains the class being constructed. Otherwise this will be undefined.

abstract member this: obj with get, set

The mocked function's this value.

Methods

static member Create (arguments: 'Args, error: obj, stack: exn, target: obj, this: obj, ?result: 'ReturnType) : MockFunctionCall<'F,'ReturnType,'Args>