ClassFuncExpectation<TReturn>
Defines the expectation for a specific method.
Definition
Namespace:Telerik.JustMock.Expectations
Assembly:Telerik.JustMock.dll
Type Parameters:
TReturn
Syntax:
public class FuncExpectation<TReturn> : CollectionExpectation<TReturn>, IAction<FuncExpectation<TReturn>>, IDoInstead<FuncExpectation<TReturn>>, IThrows<FuncExpectation<TReturn>>, IInstanceScope<FuncExpectation<TReturn>>, IReturnCollection, IFunc<TReturn>, IThrows<IFunc<TReturn>>, IReturns<TReturn>, IAssertable, IMustBeCalled, ISetupBehavior, IOccurrence, IOrder, IPrerequisite, IDisposable, IIgnorable<FuncExpectation<TReturn>>, IWhen<FuncExpectation<TReturn>>
Inheritance: objectCommonExpectation<FuncExpectation<TReturn>>CollectionExpectation<TReturn>FuncExpectation<TReturn>
Implements:
Inherited Members
Methods
Returns(Delegate)
Specifies the delegate to evaluate and return for the expected method.
Declaration
public IAssertable Returns(Delegate @delegate)
Parameters
delegate
Target delegate to evaluate.
Returns
Reference to IAssertable interface
Implements
Returns(Func<TReturn, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns(Func<TReturn, TReturn> func)
Parameters
func
Func<TReturn, TReturn>
Returns
Reference to IAssertable interface.
Returns(Func<TReturn>)
Specifies the function to evaluate and return.
Declaration
public IAssertable Returns(Func<TReturn> func)
Parameters
func
Func<TReturn>
Target function to evaluate
Returns
Reference to IAssertable interface
Implements
Returns(TReturn)
Defines the return value for a specific method expectation.
Declaration
public IAssertable Returns(TReturn value)
Parameters
value
TReturn
any object value
Returns
Implements
Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, T5, T6, T7, T8, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, T5, T6, T7, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, T5, T6, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, T5, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3, T4>(Func<T1, T2, T3, T4, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3, T4>(Func<T1, T2, T3, T4, TReturn> func)
Parameters
func
Func<T1, T2, T3, T4, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2, T3>(Func<T1, T2, T3, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2, T3>(Func<T1, T2, T3, TReturn> func)
Parameters
func
Func<T1, T2, T3, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1, T2>(Func<T1, T2, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1, T2>(Func<T1, T2, TReturn> func)
Parameters
func
Func<T1, T2, TReturn>
Returns
Reference to IAssertable interface.
Implements
Returns<T1>(Func<T1, TReturn>)
Specifies the delegate that will execute and return the value for the expected member.
Declaration
public IAssertable Returns<T1>(Func<T1, TReturn> func)
Parameters
func
Func<T1, TReturn>
Returns
Reference to IAssertable interface.
Implements