Class
LocalRefHandle<T>

Handles local refs returns used for mocking, used with conjunction with WithValue<T>(T)

Definition

Namespace:Telerik.JustMock

Assembly:Telerik.JustMock.dll

Type Parameters:

T

Syntax:

cs-api-definition
public abstract class LocalRefHandle<T>

Inheritance: objectLocalRefHandle<T>

Constructors

LocalRefHandle(RefDelegate)

Constructs local ref handle

Declaration

cs-api-definition
public LocalRefHandle(FuncExpectation<T>.RefDelegate refDelegate)

Parameters

refDelegate

FuncExpectation<T>.RefDelegate

Mocking delegate

Properties

Handle

Delegate used for mocking ref returns, see Returns(Delegate)

Declaration

cs-api-definition
public FuncExpectation<T>.RefDelegate Handle { get; }

Property Value

FuncExpectation<T>.RefDelegate

Ref

Ref to the internal value of type T

Declaration

cs-api-definition
public ref T Ref { get; }

Property Value

T