C# Class TechTalk.SpecFlow.BindingSkeletons.StepDefinitionSkeletonProvider

Inheritance: IStepDefinitionSkeletonProvider
ファイルを表示 Open project: aqueduct/SpecflowWithNunitRunner Class Usage Examples

Public Methods

Method Description
Analyze ( TechTalk.SpecFlow.Bindings.StepInstance stepInstance, CultureInfo bindingCulture ) : TechTalk.SpecFlow.BindingSkeletons.AnalyzedStepText
GetBindingClassSkeleton ( ProgrammingLanguage language, TechTalk.SpecFlow.Bindings.StepInstance stepInstances, string namespaceName, string className, StepDefinitionSkeletonStyle style, CultureInfo bindingCulture ) : string
GetStepDefinitionSkeleton ( ProgrammingLanguage language, TechTalk.SpecFlow.Bindings.StepInstance stepInstance, StepDefinitionSkeletonStyle style, CultureInfo bindingCulture ) : string
StepDefinitionSkeletonProvider ( ISkeletonTemplateProvider templateProvider, IStepTextAnalyzer stepTextAnalyzer ) : System

Protected Methods

Method Description
EscapeRegex ( string text ) : string

Private Methods

Method Description
AppendWordsPascalCase ( string text, CultureInfo language, StringBuilder result ) : void
AppendWordsUnderscored ( string text, CultureInfo language, StringBuilder result ) : void
ApplyTemplate ( string template, object args ) : string
GetCSharpTypeName ( string type ) : string
GetFSharpTypeName ( string type ) : string
GetMatchingMethodName ( string keyword, TechTalk.SpecFlow.BindingSkeletons.AnalyzedStepText analyzedStepText, CultureInfo language, Action appendWords, string paramFormat ) : string
GetMethodName ( TechTalk.SpecFlow.Bindings.StepInstance stepInstance, TechTalk.SpecFlow.BindingSkeletons.AnalyzedStepText analyzedStepText, StepDefinitionSkeletonStyle style, ProgrammingLanguage language ) : string
GetOrderedSteps ( TechTalk.SpecFlow.Bindings.StepInstance stepInstances ) : IEnumerable
GetRegex ( TechTalk.SpecFlow.BindingSkeletons.AnalyzedStepText stepText ) : string
GetWords ( string text ) : IEnumerable
ToDeclaration ( ProgrammingLanguage language, TechTalk.SpecFlow.BindingSkeletons.AnalyzedStepParameter parameter ) : string

Method Details

Analyze() public method

public Analyze ( TechTalk.SpecFlow.Bindings.StepInstance stepInstance, CultureInfo bindingCulture ) : TechTalk.SpecFlow.BindingSkeletons.AnalyzedStepText
stepInstance TechTalk.SpecFlow.Bindings.StepInstance
bindingCulture System.Globalization.CultureInfo
return TechTalk.SpecFlow.BindingSkeletons.AnalyzedStepText

EscapeRegex() protected static method

protected static EscapeRegex ( string text ) : string
text string
return string

GetBindingClassSkeleton() public method

public GetBindingClassSkeleton ( ProgrammingLanguage language, TechTalk.SpecFlow.Bindings.StepInstance stepInstances, string namespaceName, string className, StepDefinitionSkeletonStyle style, CultureInfo bindingCulture ) : string
language ProgrammingLanguage
stepInstances TechTalk.SpecFlow.Bindings.StepInstance
namespaceName string
className string
style StepDefinitionSkeletonStyle
bindingCulture System.Globalization.CultureInfo
return string

GetStepDefinitionSkeleton() public method

public GetStepDefinitionSkeleton ( ProgrammingLanguage language, TechTalk.SpecFlow.Bindings.StepInstance stepInstance, StepDefinitionSkeletonStyle style, CultureInfo bindingCulture ) : string
language ProgrammingLanguage
stepInstance TechTalk.SpecFlow.Bindings.StepInstance
style StepDefinitionSkeletonStyle
bindingCulture System.Globalization.CultureInfo
return string

StepDefinitionSkeletonProvider() public method

public StepDefinitionSkeletonProvider ( ISkeletonTemplateProvider templateProvider, IStepTextAnalyzer stepTextAnalyzer ) : System
templateProvider ISkeletonTemplateProvider
stepTextAnalyzer IStepTextAnalyzer
return System