Telerik® JustMock™ by Progress

Defines the return value for a specific method expectation.

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


public static IAssertable Returns<TReturn>(
	this IAssertable assertable,
	TReturn value
Visual Basic
<ExtensionAttribute> _
Public Shared Function Returns(Of TReturn) ( _
	assertable As IAssertable, _
	value As TReturn _
) As IAssertable


Type: IAssertable
Reference to IAssertable interface.
Type: TReturn
Any object value.

Type Parameters

Type of the return value.

Return Value

Reference to IMustBeCalled interface

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAssertable. 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