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

Inheritance: MemberBuilder
显示文件 Open project: Jedzia/NStub Class Usage Examples

Public Methods

Method Description
CanHandleContext ( IMemberBuildContext context ) : bool

Determines whether this instance can handle a specified build context.

PropertyBuilder ( IMemberSetupContext context ) : System

Initializes a new instance of the PropertyBuilder class.

Protected Methods

Method Description
BuildMember ( IMemberBuildContext context ) : bool

Builds the specified context.

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

Handle property related stuff before type generation.

DetermineTestName ( IMemberSetupContext context, string originalName ) : string

Determines the name of the test method.

Method Details

BuildMember() protected method

Builds the specified context.
context is out of range.
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.
protected ComputeCodeMemberProperty ( CodeMemberMethod typeMember, IBuilderData builderData, string propertyName ) : void
typeMember System.CodeDom.CodeMemberMethod The type member.
builderData IBuilderData The builder data.
propertyName string Name of the property.
return void

DetermineTestName() protected method

Determines the name of the test method.
protected DetermineTestName ( IMemberSetupContext context, string originalName ) : string
context IMemberSetupContext The build context of the test method member.
originalName string The initial name of the test method member.
return string

PropertyBuilder() public method

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