Interface INonPublicRefReturnExpectation
Defines methods to mock non-public ref return members.
Namespace: Telerik.JustMock.Expectations.Abstraction
Assembly: Telerik.JustMock.dll
Syntax
public interface INonPublicRefReturnExpectation
Remarks
Overloads required generic arguments which are converted internally to references. For more information about arranging non public expectations see INonPublicExpectation interface.
Methods
Arrange<TRefReturn>(Object, String, Object[])
Arranges a method for mocking.
Declaration
FuncExpectation<TRefReturn> Arrange<TRefReturn>(object target, string memberName, params object[] args)
Parameters
System.Object
target
Target instance. |
System.String
memberName
Target member name |
System.Object[]
args
Method arguments |
Returns
FuncExpectation<TRefReturn>
|
Type Parameters
TRefReturn
Ref return type |
Arrange<TRefReturn>(Type, String, Object[])
Arranges a method for mocking.
Declaration
FuncExpectation<TRefReturn> Arrange<TRefReturn>(Type targetType, string memberName, params object[] args)
Parameters
System.Type
targetType
Target type |
System.String
memberName
Target member name |
System.Object[]
args
Method arguments |
Returns
FuncExpectation<TRefReturn>
|
Type Parameters
TRefReturn
Ref return type |
Arrange<T, TRefReturn>(String, Object[])
Arranges a method for mocking.
Declaration
FuncExpectation<TRefReturn> Arrange<T, TRefReturn>(string memberName, params object[] args)
Parameters
System.String
memberName
Target member name |
System.Object[]
args
Method arguments |
Returns
FuncExpectation<TRefReturn>
|
Type Parameters
T
Target type |
TRefReturn
Ref return type |
Assert<TRefReturn>(Object, String, Object[])
Asserts the specified member that it is called as expected.
Declaration
void Assert<TRefReturn>(object target, string memberName, params object[] args)
Parameters
System.Object
target
Target mock |
System.String
memberName
Name of the member |
System.Object[]
args
Method arguments |
Type Parameters
TRefReturn
Ref return type |
Assert<TRefReturn>(Object, String, Occurs, Object[])
Asserts the specified member that it is called as expected.
Declaration
void Assert<TRefReturn>(object target, string memberName, Occurs occurs, params object[] args)
Parameters
System.Object
target
Target mock |
System.String
memberName
Name of the member |
Occurs
occurs
Specifies the number of times a call should occur. |
System.Object[]
args
Method arguments |
Type Parameters
TRefReturn
Ref return type |
Assert<TRefReturn>(Type, String, Object[])
Asserts the specified member that it is called as expected.
Declaration
void Assert<TRefReturn>(Type targetType, string memberName, params object[] args)
Parameters
System.Type
targetType
Type of the target |
System.String
memberName
Name of the member |
System.Object[]
args
Method arguments |
Type Parameters
TRefReturn
Ref return type |
Assert<TRefReturn>(Type, String, Occurs, 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
System.Type
targetType
Type of the target |
System.String
memberName
Name of the member |
Occurs
occurs
Specifies the number of times a call should occur. |
System.Object[]
args
Method arguments |
Type Parameters
TRefReturn
Ref return type |
Assert<T, TRefReturn>(String, Object[])
Asserts the specified member that it is called as expected.
Declaration
void Assert<T, TRefReturn>(string memberName, params object[] args)
Parameters
System.String
memberName
Name of the member |
System.Object[]
args
Method arguments |
Type Parameters
T
Specify the target type |
TRefReturn
Ref return type |
Assert<T, TRefReturn>(String, Occurs, Object[])
Asserts the specified member that it is called as expected.
Declaration
void Assert<T, TRefReturn>(string memberName, Occurs occurs, params object[] args)
Parameters
System.String
memberName
Name of the member |
Occurs
occurs
Specifies the number of times a call should occur. |
System.Object[]
args
Method arguments |
Type Parameters
T
Specify the target type |
TRefReturn
Ref return type |
GetTimesCalled<TRefReturn>(Object, String, Object[])
Returns the number of times the specified member was called.
Declaration
int GetTimesCalled<TRefReturn>(object target, string memberName, params object[] args)
Parameters
System.Object
target
Target mock |
System.String
memberName
Name of the member |
System.Object[]
args
Method arguments |
Returns
System.Int32
Number of calls. |
Type Parameters
TRefReturn
Ref return type |
GetTimesCalled<TRefReturn>(Type, String, Object[])
Returns the number of times the specified member was called.
Declaration
int GetTimesCalled<TRefReturn>(Type targetType, string memberName, params object[] args)
Parameters
System.Type
targetType
Type of the target |
System.String
memberName
Name of the member |
System.Object[]
args
Method arguments |
Returns
System.Int32
Number of calls. |
Type Parameters
TRefReturn
|
GetTimesCalled<T, TRefReturn>(String, Object[])
Returns the number of times the specified member was called.
Declaration
int GetTimesCalled<T, TRefReturn>(string memberName, params object[] args)
Parameters
System.String
memberName
Name of the member |
System.Object[]
args
Method arguments |
Returns
System.Int32
Number of calls. |
Type Parameters
T
Specify the target type |
TRefReturn
|