C# Класс TechTalk.SpecFlow.GeneratorTests.CustomTestGeneratorProviderTest.SimpleTestGeneratorProvider

This class will change the default name space of a geneated test code, and the method name for tests corresponds to a scenario example
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
newTitles List

Открытые методы

Метод Описание
FinalizeTestClass ( TechTalk.SpecFlow.Generator.TestClassGenerationContext generationContext ) : void
SetTestMethodAsRow ( TechTalk.SpecFlow.Generator.TestClassGenerationContext generationContext, CodeMemberMethod testMethod, string scenarioTitle, string exampleSetName, string variantName, string>.IEnumerable arguments ) : void
SimpleTestGeneratorProvider ( CodeDomHelper codeDomHelper ) : System.CodeDom

Приватные методы

Метод Описание
GetMethodName ( string title, string exampleSetTitle, string>.IEnumerable arguments ) : string

Gets the name of the method by concat the name and value of arugment together

Описание методов

FinalizeTestClass() публичный Метод

public FinalizeTestClass ( TechTalk.SpecFlow.Generator.TestClassGenerationContext generationContext ) : void
generationContext TechTalk.SpecFlow.Generator.TestClassGenerationContext
Результат void

SetTestMethodAsRow() публичный Метод

public SetTestMethodAsRow ( TechTalk.SpecFlow.Generator.TestClassGenerationContext generationContext, CodeMemberMethod testMethod, string scenarioTitle, string exampleSetName, string variantName, string>.IEnumerable arguments ) : void
generationContext TechTalk.SpecFlow.Generator.TestClassGenerationContext
testMethod System.CodeDom.CodeMemberMethod
scenarioTitle string
exampleSetName string
variantName string
arguments string>.IEnumerable
Результат void

SimpleTestGeneratorProvider() публичный Метод

public SimpleTestGeneratorProvider ( CodeDomHelper codeDomHelper ) : System.CodeDom
codeDomHelper CodeDomHelper
Результат System.CodeDom

Описание свойств

newTitles публичное свойство

public List newTitles
Результат List