IFunc<TReturn>
Interface
Interface containing Func type method expectations.
Definition
Namespace:Telerik.JustMock.Expectations.Abstraction
Assembly:Telerik.JustMock.dll
Type Parameters:
TReturn
Syntax:
C#
public interface IFunc<TReturn> : IThrows<IFunc<TReturn>>, IReturns<TReturn>, IAssertable, IMustBeCalled, ISetupBehavior, IOccurrence, IOrder, IPrerequisite, IDisposable
Derived Classes:
Inherited Members
Methods
Specifies the delegate to evaluate and return for the expected method.
C#
IAssertable Returns(Delegate @delegate)
Target delegate to evaluate.
Returns:Reference to IAssertable interface
Specifies the delegate to evaluate and return for the expected method.
C#
IAssertable Returns(Func<TReturn> func)
Target delegate to evaluate
Returns:Reference to IAssertable interface
Specifies the return value for the expected method.
Returns a enumerable collection for the target query.
C#
IAssertable ReturnsCollection<TArg>(IEnumerable<TArg> collection)
Enumerable collection
Returns:Instance of IAssertable