Interface IAction<TContainer>
Defines common expectations.
Inherited Members
Namespace: Telerik.JustMock.Expectations.Abstraction
Assembly: Telerik.JustMock.dll
Syntax
public interface IAction<TContainer> : IDoInstead<TContainer>, IThrows<TContainer>, IAssertable, IMustBeCalled, ISetupBehavior, IOccurrence, IOrder, IPrerequisite, IDisposable
Type Parameters
TContainer
|
Methods
DoNothing()
Specifies call a to step over (loose mocks only).
Declaration
IAssertable DoNothing()
Returns
IAssertable
Reference to IAssertable |
Remarks
For loose mocks by default the behavior is step over.
Raises(Action, EventArgs)
Raises the expected with specific arguments
Declaration
TContainer Raises(Action eventExpression, EventArgs args)
Parameters
System.Action
eventExpression
|
System.EventArgs
args
Event arguments |
Returns
TContainer
|
Exceptions
System.InvalidOperationException
|
Raises(Action, Object[])
Raises the expected with specific arguments
Declaration
TContainer Raises(Action eventExpression, params object[] args)
Parameters
System.Action
eventExpression
|
System.Object[]
args
|
Returns
TContainer
|
Exceptions
System.InvalidOperationException
|
Raises<T1>(Action, Func<T1, EventArgs>)
Raises the expected event for the setup.
Declaration
TContainer Raises<T1>(Action eventExpression, Func<T1, EventArgs> func)
Parameters
System.Action
eventExpression
|
System.Func<T1, System.EventArgs>
func
An function that will be used to construct event arguments |
Returns
TContainer
|
Type Parameters
T1
|
Exceptions
System.InvalidOperationException
|
Raises<T1, T2>(Action, Func<T1, T2, EventArgs>)
Raises the expected event for the setup.
Declaration
TContainer Raises<T1, T2>(Action eventExpression, Func<T1, T2, EventArgs> func)
Parameters
System.Action
eventExpression
|
System.Func<T1, T2, System.EventArgs>
func
An function that will be used to construct event arguments |
Returns
TContainer
|
Type Parameters
T1
|
T2
|
Exceptions
System.InvalidOperationException
|
Raises<T1, T2, T3>(Action, Func<T1, T2, T3, EventArgs>)
Raises the expected event for the setup.
Declaration
TContainer Raises<T1, T2, T3>(Action eventExpression, Func<T1, T2, T3, EventArgs> func)
Parameters
System.Action
eventExpression
|
System.Func<T1, T2, T3, System.EventArgs>
func
An function that will be used to construct event arguments |
Returns
TContainer
|
Type Parameters
T1
|
T2
|
T3
|
Exceptions
System.InvalidOperationException
|
Raises<T1, T2, T3, T4>(Action, Func<T1, T2, T3, T4, EventArgs>)
Raises the expected event for the setup.
Declaration
TContainer Raises<T1, T2, T3, T4>(Action eventExpression, Func<T1, T2, T3, T4, EventArgs> func)
Parameters
System.Action
eventExpression
|
System.Func<T1, T2, T3, T4, System.EventArgs>
func
An function that will be used to construct event arguments |
Returns
TContainer
|
Type Parameters
T1
|
T2
|
T3
|
T4
|
Exceptions
System.InvalidOperationException
|