Telerik® JustMock™ by Progress

Specifies that the arranged member will return consecutive values from the given array. If the arranged member is called after it has returned the last value, an exception is thrown.

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


public static IAssertable ReturnsMany<TReturn>(
	this IFunc<TReturn> func,
	params TReturn[] values
Visual Basic
<ExtensionAttribute> _
Public Shared Function ReturnsMany(Of TReturn) ( _
	func As IFunc(Of TReturn), _
	ParamArray values As TReturn() _
) As IAssertable


Type: IFunc<(Of <(<'TReturn>)>)>
The arranged member.
Type: array<TReturn>[]()[][]
The array of values that will be returned by the arranged member.

Type Parameters

Type of the return value.

Return Value

Reference to IAssertable interface.

Usage Note

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