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

Inheritance: MemberBuilder
Afficher le fichier Open project: Jedzia/NStub Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

Builds the specified context.
context is out of range.
protected BuildMember ( IMemberBuildContext context ) : bool
context IMemberBuildContext The build context of the test method member.
Résultat bool

CanHandleContext() public static méthode

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.
Résultat bool

ComputeCodeMemberProperty() protected méthode

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.
Résultat void

DetermineTestName() protected méthode

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.
Résultat string

PropertyBuilder() public méthode

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