C# Class Moq.Interceptor

Implements the actual interception and method invocation for all mocks.
Inheritance: ICallInterceptor
Exibir arquivo Open project: moq/moq4 Class Usage Examples

Private Properties

Property Type Description
ClearCalls void
Intercept void
InterceptionStrategies IEnumerable
Verify void
VerifyAll void
VerifyOrThrow void

Public Methods

Method Description
AddCall ( IProxyCall call, SetupKind kind ) : void
Interceptor ( MockBehavior behavior, Type targetType, Mock mock ) : System

Private Methods

Method Description
ClearCalls ( ) : void
Intercept ( ICallContext invocation ) : void
InterceptionStrategies ( ) : IEnumerable
Verify ( ) : void
VerifyAll ( ) : void
VerifyOrThrow ( bool>.Func match ) : void

Method Details

AddCall() public method

public AddCall ( IProxyCall call, SetupKind kind ) : void
call IProxyCall
kind SetupKind
return void

Interceptor() public method

public Interceptor ( MockBehavior behavior, Type targetType, Mock mock ) : System
behavior MockBehavior
targetType System.Type
mock Mock
return System