InterfaceINonPublicRefReturnExpectation
Defines methods to mock non-public ref return members.
Definition
Namespace:Telerik.JustMock.Expectations.Abstraction
Assembly:Telerik.JustMock.dll
Syntax:
public interface INonPublicRefReturnExpectation
Methods
Arrange<T, TRefReturn>(string, params object[])
Arranges a method for mocking.
Declaration
FuncExpectation<TRefReturn> Arrange<T, TRefReturn>(string memberName, params object[] args)
Parameters
memberName
Target member name
args
object[]
Method arguments
Returns
FuncExpectation<TRefReturn>
Arrange<TRefReturn>(Type, string, params object[])
Arranges a method for mocking.
Declaration
FuncExpectation<TRefReturn> Arrange<TRefReturn>(Type targetType, string memberName, params object[] args)
Parameters
targetType
Target type
memberName
Target member name
args
object[]
Method arguments
Returns
FuncExpectation<TRefReturn>
Arrange<TRefReturn>(object, string, params object[])
Arranges a method for mocking.
Declaration
FuncExpectation<TRefReturn> Arrange<TRefReturn>(object target, string memberName, params object[] args)
Parameters
target
Target instance.
memberName
Target member name
args
object[]
Method arguments
Returns
FuncExpectation<TRefReturn>
Assert<T, TRefReturn>(string, Occurs, params object[])
Asserts the specified member that it is called as expected.
Assert<T, TRefReturn>(string, params object[])
Asserts the specified member that it is called as expected.
Assert<TRefReturn>(Type, string, Occurs, params object[])
Asserts the specified member that it is called as expected.
Declaration
void Assert<TRefReturn>(Type targetType, string memberName, Occurs occurs, params object[] args)
Parameters
targetType
Type of the target
memberName
Name of the member
occurs
Specifies the number of times a call should occur.
args
object[]
Method arguments
Assert<TRefReturn>(Type, string, params object[])
Asserts the specified member that it is called as expected.
Assert<TRefReturn>(object, string, Occurs, params object[])
Asserts the specified member that it is called as expected.
Assert<TRefReturn>(object, string, params object[])
Asserts the specified member that it is called as expected.
GetTimesCalled<T, TRefReturn>(string, params object[])
Returns the number of times the specified member was called.
GetTimesCalled<TRefReturn>(Type, string, params object[])
Returns the number of times the specified member was called.
GetTimesCalled<TRefReturn>(object, string, params object[])
Returns the number of times the specified member was called.