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)


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


Type: T
Target object.
Type: System.Linq.Expressions..::..Expression<(Of <(<'Action<(Of <(<'T>)>)>>)>)>
Target action.
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}},System.String)"]

Type Parameters

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