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, the behavior depends on the behavior parameter.

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,
	IList<TReturn> values,
	AfterLastValue behavior
Visual Basic
<ExtensionAttribute> _
Public Shared Function ReturnsMany(Of TReturn) ( _
	func As IFunc(Of TReturn), _
	values As IList(Of TReturn), _
	behavior As AfterLastValue _
) As IAssertable


Type: IFunc<(Of <(<'TReturn>)>)>
The arranged member
Type: System.Collections.Generic..::..IList<(Of <(<'TReturn>)>)>
The list of values that will be returned by the arranged member. The list may be modified after the arrangement is made.
Type: Telerik.JustMock.Helpers..::..AfterLastValue
The behavior after the last value has been returned.

Type Parameters

Type of 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