Skip to content

MockFunctionContext

type MockFunctionContext<'F> = MockFunctionContext<'F>
AssemblyXantham.Fable.Node

The MockFunctionContext class is used to inspect or manipulate the behavior of mocks created via the MockTracker APIs.

@since v19.1.0, v18.13.0

Properties

abstract member calls: MockFunctionCall<'F,obj,obj array> array

A getter that returns a copy of the internal array used to track calls to the mock. Each entry in the array is an object with the following properties.

@since v19.1.0, v18.13.0