C# Class NSubstitute.Core.Arguments.ArgumentSpecification

Inheritance: IArgumentSpecification
Datei anzeigen Open project: nsubstitute/NSubstitute

Public Methods

Method Description
ArgumentSpecification ( Type forType, IArgumentMatcher matcher ) : System
ArgumentSpecification ( Type forType, IArgumentMatcher matcher, Action action ) : System
CreateCopyMatchingAnyArgOfType ( Type requiredType ) : IArgumentSpecification
DescribeNonMatch ( object argument ) : string
FormatArgument ( object argument ) : string
IsSatisfiedBy ( object argument ) : bool
RunAction ( object argument ) : void
ToString ( ) : string

Private Methods

Method Description
GetIncompatibleTypeMessage ( object argument ) : string
IsCompatibleWith ( object argument ) : bool
RunActionIfTypeIsCompatible ( object argument ) : void

Method Details

ArgumentSpecification() public method

public ArgumentSpecification ( Type forType, IArgumentMatcher matcher ) : System
forType System.Type
matcher IArgumentMatcher
return System

ArgumentSpecification() public method

public ArgumentSpecification ( Type forType, IArgumentMatcher matcher, Action action ) : System
forType System.Type
matcher IArgumentMatcher
action Action
return System

CreateCopyMatchingAnyArgOfType() public method

public CreateCopyMatchingAnyArgOfType ( Type requiredType ) : IArgumentSpecification
requiredType System.Type
return IArgumentSpecification

DescribeNonMatch() public method

public DescribeNonMatch ( object argument ) : string
argument object
return string

FormatArgument() public method

public FormatArgument ( object argument ) : string
argument object
return string

IsSatisfiedBy() public method

public IsSatisfiedBy ( object argument ) : bool
argument object
return bool

RunAction() public method

public RunAction ( object argument ) : void
argument object
return void

ToString() public method

public ToString ( ) : string
return string