C# Class LanguageModel.Tests.TestGenerator

Exibir arquivo Open project: Microsoft/VSLua Class Usage Examples

Private Properties

Property Type Description
GenerateTestStructure void
GetGenFilePath string

Public Methods

Method Description
GenerateTest ( LanguageService.SyntaxTree tree, string name ) : string
GenerateTestFromFile ( string filePath, string name ) : void
GenerateTestFromString ( string program, string name ) : void
GenerateTestsForAllTestFiles ( ) : List

Private Methods

Method Description
GenerateTestStructure ( LanguageService.SyntaxNodeOrToken syntaxNodeOrToken ) : void
GetGenFilePath ( string fileName ) : string

Method Details

GenerateTest() public method

public GenerateTest ( LanguageService.SyntaxTree tree, string name ) : string
tree LanguageService.SyntaxTree
name string
return string

GenerateTestFromFile() public method

public GenerateTestFromFile ( string filePath, string name ) : void
filePath string
name string
return void

GenerateTestFromString() public method

public GenerateTestFromString ( string program, string name ) : void
program string
name string
return void

GenerateTestsForAllTestFiles() public method

public GenerateTestsForAllTestFiles ( ) : List
return List