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