Telerik® JustMock™ by Progress

Returns the number of times the specified member was called.

Namespace: Telerik.JustMock
Assembly: Telerik.JustMock (in Telerik.JustMock.dll) Version: 2013.3.1021.0 (2013.3.1021.0)

Syntax

C#
public static int GetTimesCalled(
	Expression<Action> expression,
	Args args
)
Visual Basic
Public Shared Function GetTimesCalled ( _
	expression As Expression(Of Action), _
	args As Args _
) As Integer

Parameters

expression
Type: System.Linq.Expressions..::..Expression<(Of <(<'Action>)>)>
The action to inspect
args
Type: Telerik.JustMock..::..Args
Specifies to ignore the instance and/or arguments during assertion.

Return Value

Number of calls

See Also