C# Class NStub.CSharp.ObjectGeneration.Builders.PropertyGetBuilder

Test method generator for the 'get' part of property type members.
Inheritance: MemberBuilder
ファイルを表示 Open project: Jedzia/NStub

Public Methods

Method Description
CanHandleContext ( IMemberBuildContext context ) : bool

Determines whether this instance can handle a specified build context.

PropertyGetBuilder ( IMemberSetupContext context ) : System

Initializes a new instance of the PropertyGetBuilder class.

Protected Methods

Method Description
BuildMember ( IMemberBuildContext context ) : bool

Builds the specified context.

ComputeCodeMemberProperty ( IMemberBuildContext context, CodeMemberMethod typeMember, IBuilderData builderData, string testObjectName, string propertyName ) : void

Handle property related stuff before type generation.

Method Details

BuildMember() protected method

Builds the specified context.
protected BuildMember ( IMemberBuildContext context ) : bool
context IMemberBuildContext The build context of the test method member.
return bool

CanHandleContext() public static method

Determines whether this instance can handle a specified build context.
public static CanHandleContext ( IMemberBuildContext context ) : bool
context IMemberBuildContext The build context of the test method member.
return bool

ComputeCodeMemberProperty() protected method

Handle property related stuff before type generation.
The context of the builder does not supply a valid /// . The context of the builder does not supply a valid /// .
protected ComputeCodeMemberProperty ( IMemberBuildContext context, CodeMemberMethod typeMember, IBuilderData builderData, string testObjectName, string propertyName ) : void
context IMemberBuildContext The context. Todo: remove it with specialized parameters after development.
typeMember System.CodeDom.CodeMemberMethod The type member.
builderData IBuilderData The builder data.
testObjectName string Name of the test object member field.
propertyName string Name of the property.
return void

PropertyGetBuilder() public method

Initializes a new instance of the PropertyGetBuilder class.
public PropertyGetBuilder ( IMemberSetupContext context ) : System
context IMemberSetupContext The build context of the test method member.
return System