Partilhar via


ExpectedReturn Constructor

Initializes a new instance of the ExpectedReturn structure.

Namespace: Microsoft.SpecExplorer.Runtime.Testing
Assembly: Microsoft.SpecExplorer.Runtime (in Microsoft.SpecExplorer.Runtime.dll)

Usage

'Usage

Syntax

'Declaration
public ExpectedReturn (
    MethodBase methodInfo,
    Object target,
    Delegate checker
)

Parameters

  • methodInfo
    The reflection information for the method return.
  • target
    The object on which the method was called; or null, for a static method or a method defined on the adapter.
  • checker
    The method to call when the method return arrives.

Platforms

Development Platforms

Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP SP2 or later, Microsoft Windows Server 2008, Microsoft Windows Server 2003

See Also

Reference

ExpectedReturn Structure
ExpectedReturn Members
Microsoft.SpecExplorer.Runtime.Testing Namespace