C# Class NSubstitute.Core.CallSpecification

Inheritance: ICallSpecification
Show file Open project: nsubstitute/NSubstitute Class Usage Examples

Public Properties

Property Type Description
CallFormatter IMethodInfoFormatter

Public Methods

Method Description
CallSpecification ( MethodInfo methodInfo, IEnumerable argumentSpecifications ) : System
CreateCopyThatMatchesAnyArguments ( ) : ICallSpecification
Format ( ICall call ) : string
GetMethodInfo ( ) : MethodInfo
InvokePerArgumentActions ( CallInfo callInfo ) : void
IsSatisfiedBy ( ICall call ) : bool
NonMatchingArguments ( ICall call ) : IEnumerable
ReturnType ( ) : Type
ToString ( ) : string

Private Methods

Method Description
AreComparable ( MethodInfo a, MethodInfo b ) : bool
AreEquivalentDefinitions ( MethodInfo a, MethodInfo b ) : bool
CanCompareGenericMethods ( MethodInfo a, MethodInfo b ) : bool
FormatArguments ( IEnumerable arguments ) : IEnumerable
HasDifferentNumberOfArguments ( ICall call ) : bool
ParameterTypes ( MethodInfo info ) : Type[]
TypesAreAllEquivalent ( Type aArgs, Type bArgs ) : bool

Method Details

CallSpecification() public method

public CallSpecification ( MethodInfo methodInfo, IEnumerable argumentSpecifications ) : System
methodInfo System.Reflection.MethodInfo
argumentSpecifications IEnumerable
return System

CreateCopyThatMatchesAnyArguments() public method

public CreateCopyThatMatchesAnyArguments ( ) : ICallSpecification
return ICallSpecification

Format() public method

public Format ( ICall call ) : string
call ICall
return string

GetMethodInfo() public method

public GetMethodInfo ( ) : MethodInfo
return System.Reflection.MethodInfo

InvokePerArgumentActions() public method

public InvokePerArgumentActions ( CallInfo callInfo ) : void
callInfo CallInfo
return void

IsSatisfiedBy() public method

public IsSatisfiedBy ( ICall call ) : bool
call ICall
return bool

NonMatchingArguments() public method

public NonMatchingArguments ( ICall call ) : IEnumerable
call ICall
return IEnumerable

ReturnType() public method

public ReturnType ( ) : Type
return Type

ToString() public method

public ToString ( ) : string
return string

Property Details

CallFormatter public property

public IMethodInfoFormatter CallFormatter
return IMethodInfoFormatter