Class FuncExpectation<TReturn>
Defines the expectation for a specific method.
Inheritance
Inherited Members
Namespace: Telerik.JustMock.Expectations
Assembly: Telerik.JustMock.dll
Syntax
public class FuncExpectation<TReturn> : CollectionExpectation<TReturn>, IAction<FuncExpectation<TReturn>>, IDoInstead<FuncExpectation<TReturn>>, IThrows<FuncExpectation<TReturn>>, IInstanceScope<FuncExpectation<TReturn>>, IMethodMock, IReturnCollection, IFunc<TReturn>, IThrows<IFunc<TReturn>>, IReturns<TReturn>, IAssertable, IMustBeCalled, ISetupBehavior, IOccurrence, IOrder, IPrerequisite, IDisposable, IIgnorable<FuncExpectation<TReturn>>, IWhen<FuncExpectation<TReturn>>
Type Parameters
TReturn
|
Methods
Returns(TReturn)
Defines the return value for a specific method expectation.
Declaration
public IAssertable Returns(TReturn value)
Parameters
TReturn
value
any object value |
Returns
IAssertable
|
Implements
Returns(Delegate)
Specifies the delegate to evaluate and return for the expected method.
Declaration
public IAssertable Returns(Delegate delegate)
Parameters
System.Delegate
delegate
Target delegate to evaluate. |
Returns
IAssertable
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
System.Func<TReturn, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Returns(Func<TReturn>)
Specifies the function to evaluate and return.
Declaration
public IAssertable Returns(Func<TReturn> func)
Parameters
System.Func<TReturn>
func
Target function to evaluate |
Returns
IAssertable
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
System.Func<T1, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
T11
Type of the eleventh parameter of the anonymous method that this delegate encapsulates |
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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
T11
Type of the eleventh parameter of the anonymous method that this delegate encapsulates |
T12
Type of the twelveth parameter of the anonymous method that this delegate encapsulates |
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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
T11
Type of the eleventh parameter of the anonymous method that this delegate encapsulates |
T12
Type of the twelveth parameter of the anonymous method that this delegate encapsulates |
T13
Type of the thirteenth parameter of the anonymous method that this delegate encapsulates |
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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
T11
Type of the eleventh parameter of the anonymous method that this delegate encapsulates |
T12
Type of the twelveth parameter of the anonymous method that this delegate encapsulates |
T13
Type of the thirteenth parameter of the anonymous method that this delegate encapsulates |
T14
Type of the fourteenth parameter of the anonymous method that this delegate encapsulates |
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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
T11
Type of the eleventh parameter of the anonymous method that this delegate encapsulates |
T12
Type of the twelveth parameter of the anonymous method that this delegate encapsulates |
T13
Type of the thirteenth parameter of the anonymous method that this delegate encapsulates |
T14
Type of the fourteenth parameter of the anonymous method that this delegate encapsulates |
T15
Type of the fifteenth parameter of the anonymous method that this delegate encapsulates |
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<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |
T10
Type of the tenth parameter of the anonymous method that this delegate encapsulates |
T11
Type of the eleventh parameter of the anonymous method that this delegate encapsulates |
T12
Type of the twelveth parameter of the anonymous method that this delegate encapsulates |
T13
Type of the thirteenth parameter of the anonymous method that this delegate encapsulates |
T14
Type of the fourteenth parameter of the anonymous method that this delegate encapsulates |
T15
Type of the fifteenth parameter of the anonymous method that this delegate encapsulates |
T16
Type of the sixteenth parameter of the anonymous method that this delegate encapsulates |
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
System.Func<T1, T2, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
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
System.Func<T1, T2, T3, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
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
System.Func<T1, T2, T3, T4, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
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<T1, T2, T3, T4, T5, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
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<T1, T2, T3, T4, T5, T6, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
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<T1, T2, T3, T4, T5, T6, T7, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
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<T1, T2, T3, T4, T5, T6, T7, T8, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
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<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>
func
|
Returns
IAssertable
Reference to IAssertable interface. |
Type Parameters
T1
Type of the first parameter of the anonymous method that this delegate encapsulates |
T2
Type of the second parameter of the anonymous method that this delegate encapsulates |
T3
Type of the third parameter of the anonymous method that this delegate encapsulates |
T4
Type of the fourth parameter of the anonymous method that this delegate encapsulates |
T5
Type of the fifth parameter of the anonymous method that this delegate encapsulates |
T6
Type of the sixth parameter of the anonymous method that this delegate encapsulates |
T7
Type of the seventh parameter of the anonymous method that this delegate encapsulates |
T8
Type of the eighth parameter of the anonymous method that this delegate encapsulates |
T9
Type of the ninth parameter of the anonymous method that this delegate encapsulates |