IAction<TContainer>
Exposes options for configuring what happens when an arranged void member is called.
Definition
Namespace:Telerik.JustMock.Expectations.Abstraction
Assembly:Telerik.JustMock.dll
Type Parameters:
TContainer
Syntax:
public interface IAction<TContainer> : IDoInstead<TContainer>, IThrows<TContainer>, IAssertable, IMustBeCalled, ISetupBehavior, IOccurrence, IOrder, IPrerequisite, IDisposable
Derived Classes:
Inherited Members
Methods
Leaves the arranged void call without additional behavior.
IAssertable DoNothing()
The current expectation so that you can continue the arrangement. Reference to IAssertable
Use this method when you want the call to succeed without throwing or running custom logic. Loose mocks already behave this way by default.
Raises the specified event when the arranged call occurs.
TContainer Raises(Action eventExpression, EventArgs args)
Expression that identifies the event to raise.
argsEventArgsEvent arguments to pass to the handler.
Returns:TContainer
The current expectation so that you can continue the arrangement.
Exceptions:Thrown when JustMock cannot resolve the event expression.
Raises the specified event when the arranged call occurs.
TContainer Raises(Action eventExpression, params object[] args)
Expression that identifies the event to raise.
argsobject[]Arguments to pass to the event handler delegate.
Returns:TContainer
The current expectation so that you can continue the arrangement.
Exceptions:Thrown when JustMock cannot resolve the event expression.
Raises the specified event when the arranged call occurs.
TContainer Raises<T1, T2, T3, T4>(Action eventExpression, Func<T1, T2, T3, T4, EventArgs> func)
Expression that identifies the event to raise.
funcFunc<T1, T2, T3, T4, EventArgs>Function that creates the event arguments from the arranged call arguments.
Returns:TContainer
The current expectation so that you can continue the arrangement.
Exceptions:Thrown when JustMock cannot resolve the event expression.
Raises the specified event when the arranged call occurs.
TContainer Raises<T1, T2, T3>(Action eventExpression, Func<T1, T2, T3, EventArgs> func)
Expression that identifies the event to raise.
funcFunc<T1, T2, T3, EventArgs>Function that creates the event arguments from the arranged call arguments.
Returns:TContainer
The current expectation so that you can continue the arrangement.
Exceptions:Thrown when JustMock cannot resolve the event expression.
Raises the specified event when the arranged call occurs.
TContainer Raises<T1, T2>(Action eventExpression, Func<T1, T2, EventArgs> func)
Expression that identifies the event to raise.
funcFunc<T1, T2, EventArgs>Function that creates the event arguments from the arranged call arguments.
Returns:TContainer
The current expectation so that you can continue the arrangement.
Exceptions:Thrown when JustMock cannot resolve the event expression.
Raises the specified event when the arranged call occurs.
TContainer Raises<T1>(Action eventExpression, Func<T1, EventArgs> func)
Expression that identifies the event to raise.
funcFunc<T1, EventArgs>Function that creates the event arguments from the arranged call arguments.
Returns:TContainer
The current expectation so that you can continue the arrangement.
Exceptions:Thrown when JustMock cannot resolve the event expression.