Telerik® JustMock™ by Progress

The FluentHelper type exposes the following members.

Methods

  NameDescription
Public methodStatic memberArrange<(Of <<'(T>)>>)(T, Expression<(Of <<'(Action<(Of <<'(T>)>>)>)>>))
Setups the target call to act in a specific way.
Public methodStatic memberArrange<(Of <<'(T, TResult>)>>)(T, Expression<(Of <<'(Func<(Of <(<'T, TResult>)>)>>)>>))
Public methodStatic memberArrangeLike<(Of <<'(T>)>>)
Public methodStatic memberArrangeSet<(Of <<'(T>)>>)
Setups target property set operation to act in a specific way.

Examples

CopyC#
Mock.ArrangeSet(() =>; foo.MyValue = 10).Throws(new InvalidOperationException());
This will throw InvalidOperationException for when foo.MyValue is set with 10.
Public methodStatic memberAssert<(Of <<'(T>)>>)(T, String)
Asserts all expected calls that are marked as must or to be occurred a certain number of times.
Public methodStatic memberAssert<(Of <<'(T>)>>)(T, Expression<(Of <<'(Action<(Of <<'(T>)>>)>)>>), String)
Asserts the specific call
Public methodStatic memberAssert<(Of <<'(T>)>>)(T, Expression<(Of <<'(Action<(Of <<'(T>)>>)>)>>), Occurs, String)
Asserts the specific call
Public methodStatic memberAssert<(Of <<'(T, TReturn>)>>)(T, Expression<(Of <<'(Func<(Of <(<'T, TResult>)>)>>)>>), Boolean)
Public methodStatic memberAssert<(Of <<'(T, TReturn>)>>)(T, Expression<(Of <<'(Func<(Of <(<'T, TResult>)>)>>)>>), Boolean, T)
Public methodStatic memberAssertAll<(Of <<'(T>)>>)
Asserts all expected setups.
Public methodStatic memberRaise<(Of <<'(T>)>>)(T, Action<(Of <<'(T>)>>), EventArgs)
Raises the specified event. If the event is not mocked and is declared on a C# or VB class and has the default implementation for add/remove, then that event can also be raised using this method, even with the profiler off.
Public methodStatic memberRaise<(Of <<'(T>)>>)(T, Action<(Of <<'(T>)>>), array<Object>[]()[][])
Raises the specified event. If the event is not mocked and is declared on a C# or VB class and has the default implementation for add/remove, then that event can also be raised using this method, even with the profiler off.

See Also