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
Specifies the return value for the arranged call by using the supplied delegate.
public IAssertable Returns(Delegate @delegate)
Delegate to run when the arranged call occurs.
Returns:The current expectation so that you can continue the arrangement.
Implements:
Specifies the return value by using the previously arranged return value as input.
public IAssertable Returns(Func<TReturn, TReturn> func)
Function that transforms the arranged return value.
Returns:The current expectation so that you can continue the arrangement.
Specifies the return value for the arranged call by using the supplied function.
public IAssertable Returns(Func<TReturn> func)
Function to run when the arranged call occurs.
Returns:The current expectation so that you can continue the arrangement.
Implements:
Defines the return value for a specific method expectation.
public IAssertable Returns(TReturn value)
Value to return.
Returns:The current expectation so that you can continue the arrangement.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
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)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
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)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
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)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
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)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
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)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
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)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
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)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn> func)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TReturn> func)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
public IAssertable Returns<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, TReturn> func)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
public IAssertable Returns<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, TReturn> func)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
public IAssertable Returns<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, TReturn> func)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
public IAssertable Returns<T1, T2, T3, T4>(Func<T1, T2, T3, T4, TReturn> func)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
public IAssertable Returns<T1, T2, T3>(Func<T1, T2, T3, TReturn> func)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
public IAssertable Returns<T1, T2>(Func<T1, T2, TReturn> func)
Reference to IAssertable interface.
Implements:
Specifies the delegate that will execute and return the value for the expected member.
public IAssertable Returns<T1>(Func<T1, TReturn> func)
Reference to IAssertable interface.
Implements: