Variables

actualCalls

private int actualCalls

expected

private Range expected

returnValue

private object returnValue

exceptionToThrow

private Exception exceptionToThrow

method

private MethodInfo method

returnValueSet

private bool returnValueSet

repeatableOption

private RepeatableOption repeatableOption

matchingArgs

private object[] matchingArgs

outRefParams

private object[] outRefParams

message

private string message

originalInvocation

private IInvocation originalInvocation

Properties

OutRefParams

public object[] OutRefParams { set }

HasReturnValue

public bool HasReturnValue { get }

Method

public MethodInfo Method { get }

Originalinvocation

public IInvocation Originalinvocation { get }

RepeatableOption

public RepeatableOption RepeatableOption { get, set }

Expected

public Range Expected { get, set }

ActualCalls

public int ActualCalls { get }

CanAcceptCalls

public bool CanAcceptCalls { get }

ExpectationSatisfied

public bool ExpectationSatisfied { get }

ReturnValue

public object ReturnValue { get, set }

ExceptionToThrow

public Exception ExceptionToThrow { get, set }

ActionsSatisfied

public bool ActionsSatisfied { get }

Message

public string Message { get, set }

Functions

GetHashCode

public override int GetHashCode()

AddActualCall

public void AddActualCall()

ReturnOrThrow

public object ReturnOrThrow(IInvocation invocation,
object[] args)

IsExpected

public bool IsExpected(object[] args)

AbstractExpectation

protected AbstractExpectation(IInvocation invocation)

AbstractExpectation

protected AbstractExpectation(IExpectation expectation)

DoIsExpected

protected abstract bool DoIsExpected(object[] args)

Properties

ErrorMessage

public abstract string ErrorMessage { get }

Functions

Equals

public abstract override bool Equals(object obj)

CreateErrorMessage

protected string CreateErrorMessage(string derivedMessage)

SetupOutputAndRefParameters

private void SetupOutputAndRefParameters(object[] args)

ActionOnMethodNotSpesified

private void ActionOnMethodNotSpesified()

ExecuteAction

private object ExecuteAction()

AssertTypesMatches

private void AssertTypesMatches(object value)

AssertDelegateArgumentsMatchMethod

protected void AssertDelegateArgumentsMatchMethod(Delegate callback)

AssertReturnTypeMatch

private void AssertReturnTypeMatch(Delegate value)
private int actualCalls
private Range expected
private object returnValue
private Exception exceptionToThrow
private MethodInfo method
private bool returnValueSet
private RepeatableOption repeatableOption
private object[] matchingArgs
private object[] outRefParams
private string message
private IInvocation originalInvocation
public object[] OutRefParams { set }
public bool HasReturnValue { get }
public MethodInfo Method { get }
public IInvocation Originalinvocation { get }
public RepeatableOption RepeatableOption { get, set }
public Range Expected { get, set }
public int ActualCalls { get }
public bool CanAcceptCalls { get }
public bool ExpectationSatisfied { get }
public object ReturnValue { get, set }
public Exception ExceptionToThrow { get, set }
public bool ActionsSatisfied { get }
public string Message { get, set }
public override int GetHashCode()
public void AddActualCall()
public object ReturnOrThrow(IInvocation invocation,
object[] args)
public bool IsExpected(object[] args)
protected AbstractExpectation(IInvocation invocation)
protected abstract bool DoIsExpected(object[] args)
public abstract string ErrorMessage { get }
public abstract override bool Equals(object obj)
protected string CreateErrorMessage(string derivedMessage)
private void SetupOutputAndRefParameters(object[] args)
private void ActionOnMethodNotSpesified()
private object ExecuteAction()
private void AssertTypesMatches(object value)
protected void AssertDelegateArgumentsMatchMethod(Delegate callback)
private void AssertReturnTypeMatch(Delegate value)