Telerik® JustMock™ by Progress

Asserts the specific call

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

Syntax

C#
public static void Assert<T>(
	this T obj,
	Expression<Action<T>> expression,
	Occurs occurs,
	string message = null
)
Visual Basic
<ExtensionAttribute> _
Public Shared Sub Assert(Of T) ( _
	obj As T, _
	expression As Expression(Of Action(Of T)), _
	occurs As Occurs, _
	Optional message As String = Nothing _
)

Parameters

obj
Type: T
Target mock object
expression
Type: System.Linq.Expressions..::..Expression<(Of <(<'Action<(Of <(<'T>)>)>>)>)>
Target expression
occurs
Type: Telerik.JustMock..::..Occurs
Specifies the number of times a mock call should occur.
message (Optional)
Type: System..::..String

[Missing <param name="message"/> documentation for "M:Telerik.JustMock.Helpers.FluentHelper.Assert``1(``0,System.Linq.Expressions.Expression{System.Action{``0}},Telerik.JustMock.Occurs,System.String)"]

Type Parameters

T
Type of the mock.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also